Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


LuaPlus classes in C++


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 3DModelerMan   Members   -  Reputation: 1165

Like
0Likes
Like

Posted 28 February 2012 - 11:18 AM

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?

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS