我通过ToLua++将一些C++物体和功能暴露在我的卢阿文字中,例如:
function BeginZone_Toto_Enters()
local mass = Level:GetPhysicsBodyByName("C1"):GetMass();
mass = mass * 50;
Level:GetPhysicsBodyByName("C1"):SetMass(mass);
Level:GetPhysicsBodyByName("C2"):SetActive(false);
Level:GetPhysicsBodyByName("C3"):SetActive(false);
InGameScreen:ShowMessage("Toto say meow,Toto say meowToto say meowToto say meow");
AudioManager:PlaySound("CinematicBoom");
end
I understand that Lua Eclipse allows autocompletion and display of function signatures (and associated descriptions) that are written in Lua, through Lua Doc. Is there a way to have similar functionality with functions that are exposed from an external source?