[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Using multiple lua_States
- From: Brenden Rheaume <brenden_m_r@...>
- Date: Tue, 3 Aug 2004 19:10:37 -0700 (PDT)
I am beginning to imbed lua into a game project. One of the things that I would like to do is, define general functions(OnHit,OnDamaged,OnClick) for each object type in the game (each enemy, ship type, weapon type, etc), which would be defined in a lua script file for each type. What I need to know is how expensive would be to use multiple lua_States for each type, loading the lua script associated with each type, assumming there are quite a few of them (50+).
If it would be really expensive (memory/cpu) to use that many lua_States is there another convienent way to acheive the same result?
TIA
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.