summaryrefslogtreecommitdiffstats
path: root/src/LuaState.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-12-08Moved bindings-related to a Bindings subfolder.madmaxoft1-833/+0
Ref.: #407
2013-11-30Added the real tick duration to the OnWorldTick hook.madmaxoft1-0/+16
2013-11-26Fixed loads more of them.Alexander Harkness1-1/+1
2013-11-24Attempt to fix compilationTiger Wang1-1/+1
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-22Added cFile:GetFolderContents().madmaxoft1-2/+5
Fix 162.
2013-11-22Fixed cRoot:GetFurnaceRecipe() Lua binding.madmaxoft1-1/+4
2013-08-21Hook adding uses the new API.madmaxoft1-1/+1
Multiple hooks per plugin can be added. The cPluginManager.AddHook() has four available signatures, the recommended one is cPluginManager.AddHook(HOOK_TYPE, CallbackFunction)
2013-08-21cLuaState: Added LogStackTrace() and GetTypeText() utility functionsmadmaxoft1-0/+6
2013-08-19Finished renaming cPlugin_NewLua to cPluginLua.madmaxoft1-2/+2
2013-08-11Added the OnHopperPullingItem and OnHopperPushingItem hooks.madmaxoft1-0/+4
Requested in FS 412, slightly modified the params.
2013-08-09Added OnExploding() and OnExploded() hooks.madmaxoft1-0/+203
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/+4
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-29/+86
2013-08-08LuaState refactoring: using templates for hook function calls.madmaxoft1-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.
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