summaryrefslogtreecommitdiffstats
path: root/source/LuaState.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Removed LuaScript.madmaxoft2013-08-081-0/+4
| | | | The WebAdmin now uses LuaState directly to call the one function it needs.
* cPlugin_NewLua is now completely rewritten to use templated LuaState calls.madmaxoft2013-08-081-29/+86
|
* LuaState refactoring: using templates for hook function calls.madmaxoft2013-08-081-20/+357
| | | | This simplifies calling Lua functions considerably, it's almost like calling a C++ function, only with an extra argument to delimit args from returned values.
* Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.madmaxoft2013-08-081-0/+2
| | | | As requested in FS 418.
* cLuaState has reference management, param checking and a fixed destructor.madmaxoft2013-08-071-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 *.
* cLuaState now tracks the function name and number of argsmadmaxoft2013-08-061-4/+46
|
* cLuaState can now contain a detached LuaState, too.madmaxoft2013-08-061-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.
* LuaState refactoring: initial part.madmaxoft2013-08-041-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