class_<Scene>("Scene") .def(constructor<Renderer*>()) .property("rootSceneNode", &Scene::getRootSceneNode),
In Lua...
scene = Scene(renderer)scene.rootSceneNode = SceneNode()scene.rootSceneNode : translate(Vector3(1, 0, 0))
My question is this: How can I implement these "properties" where getter/setter functions are called on assignment and access purely in Lua?
class 'Test'function Test : __init(value) self.value = valueendfunction Test : getLength() return # self.valueend// How do I create a length "property" which calls getLength when I do this.test = Test({1, 2, 3, 4})print(test.length)