Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added cFile:GetFolderContents(). | madmaxoft | 2013-11-22 | 1 | -2/+5 |
| | | | | Fix 162. | ||||
* | Fixed cRoot:GetFurnaceRecipe() Lua binding. | madmaxoft | 2013-11-22 | 1 | -1/+4 |
| | |||||
* | Hook adding uses the new API. | madmaxoft | 2013-08-21 | 1 | -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) | ||||
* | cLuaState: Added LogStackTrace() and GetTypeText() utility functions | madmaxoft | 2013-08-21 | 1 | -0/+6 |
| | |||||
* | Finished renaming cPlugin_NewLua to cPluginLua. | madmaxoft | 2013-08-19 | 1 | -2/+2 |
| | |||||
* | Added the OnHopperPullingItem and OnHopperPushingItem hooks. | madmaxoft | 2013-08-11 | 1 | -0/+4 |
| | | | | Requested in FS 412, slightly modified the params. | ||||
* | Added OnExploding() and OnExploded() hooks. | madmaxoft | 2013-08-09 | 1 | -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 | ||||
* | Removed LuaScript. | madmaxoft | 2013-08-08 | 1 | -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. | madmaxoft | 2013-08-08 | 1 | -29/+86 |
| | |||||
* | LuaState refactoring: using templates for hook function calls. | madmaxoft | 2013-08-08 | 1 | -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. | madmaxoft | 2013-08-08 | 1 | -0/+2 |
| | | | | As requested in FS 418. | ||||
* | cLuaState has reference management, param checking and a fixed destructor. | madmaxoft | 2013-08-07 | 1 | -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 args | madmaxoft | 2013-08-06 | 1 | -4/+46 |
| | |||||
* | cLuaState can now contain a detached LuaState, too. | madmaxoft | 2013-08-06 | 1 | -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. | madmaxoft | 2013-08-04 | 1 | -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 |