lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Embedded lua in a cpp application with the skills you need and you got it
really easy and for today, since you already got the code to handle the
attributes.

-----Mensagem original-----
De: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] Em nome de Roger D Vargas
Enviada em: sábado, 21 de abril de 2007 09:08
Para: Lua list
Assunto: inherit from C++ classes

Im planning to write a MMO framework and I would like to make it as 
flexible as possible. I would like to handle some entities attributes 
(like coordinates, name, id) in the C core and higher level attributes 
(stats, skills) in lua.
Is it possible to inherit from C++ classes, or in some way extend such 
classes, passed to lua script by tolua++ generated code and modify the 
base instance values?

-- 
http://dsgp.blogspot.com | Linux, programación, juegos
Have no place I can be since I found Serenity
But you can?t take the sky from me

		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com