So far I have been able to send C++ functions to a Lua environment using LuaBridge. However, I'm not sure how to expose unit objects to the player through lua. The player should only be able to change certain attributes of the object (for example, they shouldn't be allowed to change the object's position to anywhere on the map, but they should be able to view the unit's position). The user should also be allowed to run functions like
unit1.forward that can change the units position.
What is the best way to implement this behavior?