In the documentation I see only chaiscript::fun for adding member variables as well as member functions of a class.
Is there any way to add a member variable using a getter and a setter function ? In lua it is doable using sol::property with sol2 library.
Is there any way to add a readonly property ? In lua it is doable using sol::readonly with sol2 library.
In the documentation I see only
chaiscript::funfor adding member variables as well as member functions of a class.Is there any way to add a member variable using a getter and a setter function ? In lua it is doable using
sol::propertywithsol2library.Is there any way to add a readonly property ? In lua it is doable using
sol::readonlywithsol2library.