summaryrefslogtreecommitdiffstats
path: root/source/LuaState.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-08-18Fixed assert failures in cLuaState when using it for pushing a StringVector.madmaxoft1-31/+0
2013-08-15Attempting to fix CentOS / gcc 4.4.7 compilation problem.madmaxoft1-1/+1
Reported by ThijsD in the forum http://forum.mc-server.org/showthread.php?tid=1220
2013-08-11Added the OnHopperPullingItem and OnHopperPushingItem hooks.madmaxoft1-0/+26
Requested in FS 412, slightly modified the params.
2013-08-09Added OnExploding() and OnExploded() hooks.madmaxoft1-0/+64
As requested in FS 413, with extra parameters: World, BlockX, BlockY, BlockZ, Size, CanCauseFire, Source, SourceData OnExploding() can return 3 values: StopHook, CanCauseFire, ExplosionSize
2013-08-08Removed LuaScript.madmaxoft1-0/+26
The WebAdmin now uses LuaState directly to call the one function it needs.
2013-08-08cPlugin_NewLua is now completely rewritten to use templated LuaState calls.madmaxoft1-6/+60
2013-08-08LuaState refactoring: using templates for hook function calls.madmaxoft1-13/+130
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.
2013-08-08Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.madmaxoft1-0/+13
As requested in FS 418.
2013-08-07cLuaState has reference management, param checking and a fixed destructor.madmaxoft1-1/+186
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-06cLuaScript now uses cLuaStatemadmaxoft1-1/+1
2013-08-06cLuaState now tracks the function name and number of argsmadmaxoft1-6/+182
2013-08-06cLuaState can now contain a detached LuaState, too.madmaxoft1-0/+67
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/+218
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