LuaPlus classes in C++
Hi, I have been working on integrating LuaPlus into my engine, and I ran into a small problem. My engine uses a componet based entity system, and I want scripts to be able to define classes similar to the way you do in Unity. I plan on having scripts create metatables and creating a table in C++ that uses the metatable from the script to call script functions sored in the script metatable. How can I set something like that up? Should I hve a function that gets called in the script to register the metatable?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement