Advertisement

LuaPlus classes in C++

Started by February 28, 2012 05:18 PM
-1 comments, last by 3DModelerMan 12 years, 9 months ago
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