I'm new to lua and I'm wondering, is it efficient to use lua to store game data (such as monster's description, spells).
My problem is, when I try to create a monster object every second, I have to run the lua file and get the data repeatedly, which I think may be not efficient.
Before I try to use lua, I use XML to store data. At the beginning of gameplay, I read the "monster.xml" file once, and keep it in the memory, and every time I need to create a monster, I just refer to it. Is this XML approach more efficient than the lua one ? Or are there other better solutions?
Thanks !