summaryrefslogtreecommitdiffstats
path: root/source/LuaState.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-08-08Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.madmaxoft1-0/+2
As requested in FS 418.
2013-08-07cLuaState has reference management, param checking and a fixed destructor.madmaxoft1-3/+48
References are now managed as RAII objects, cLuaState::cRef. Destructor now calls correct function, either Close() or Detach(), based on the owned-ness of the lua_State *.
2013-08-06cLuaState now tracks the function name and number of argsmadmaxoft1-4/+46
2013-08-06cLuaState can now contain a detached LuaState, too.madmaxoft1-1/+22
This will be useful for cases when we get a lua_State * from the outside and are asked to perform operations on it.
2013-08-04LuaState refactoring: initial part.madmaxoft1-0/+90
The cLuaState class is a wrapper for the lua_State * and for the common functions on it. The cPlugin_NewLua has been rewritten to use it instead of the raw pointer. Part of #33