Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2014-07-03 | Changed OnWeatherChanging hook to always read the returned weather. | madmaxoft | 1 | -0/+5 | |
Ref.: http://forum.mc-server.org/showthread.php?tid=1512 | |||||
2014-07-01 | Tolua generates LuaState_Call.inc file. | madmaxoft | 1 | -622/+7 | |
2014-06-03 | Fixed OnProjectileHitBlock bindings. | madmaxoft | 1 | -20/+24 | |
Also sorted the various cLuaState::Push() functions. | |||||
2014-03-29 | Fixed error when the hook gets called. | STRWarrior | 1 | -0/+2 | |
2014-03-20 | Made pushing plain pointer to Lua a valid operation, with a warning. | madmaxoft | 1 | -1/+1 | |
This is used for exotic explosions, and the NORETURNDEBUG macro caused MSVC warnings across the entire cLuaState class (MSVC marked ALL Push() function overloads as non-returning) | |||||
2014-03-19 | Errors in Lua don't include the error handler in the stack trace. | madmaxoft | 1 | -2/+2 | |
Fixes #817. | |||||
2014-03-14 | Added Noreturn attribtes to a couple of functions and made a missing noreturn an error | Tycho | 1 | -1/+1 | |
2014-03-12 | Moved Lua API registering into a separate function. | madmaxoft | 1 | -1/+6 | |
This will allow us to use Lua as lite-config files as well, should we want to. | |||||
2014-03-11 | Unified Vector classes | andrew | 1 | -1/+2 | |
2014-03-04 | cLuaState: Made public the GetStackValue() functions. | madmaxoft | 1 | -48/+49 | |
2014-02-17 | Add Lua plugin path to package.path and .cpath. | madmaxoft | 1 | -0/+3 | |
Fixes #693. | |||||
2014-02-11 | Added cLuaState::CheckParamFunctionOrNil(). | madmaxoft | 1 | -0/+3 | |
Also fixed error reporting for the two function-checking functions. | |||||
2014-02-09 | cLuaState::cRef can be unbound and re-bound. | madmaxoft | 1 | -2/+15 | |
This will allow us to store Lua references as member variables in classes and initialize those later than in the constructor. | |||||
2014-01-21 | Implemented cPluginManager:CallPlugin() API. | madmaxoft | 1 | -58/+85 | |
This function supersedes cPlugin:Call(), is safer to use in regards to multithreading and once again removes the need for the cPlugin class being exported at all. | |||||
2014-01-19 | cLuaState can now check function params. | madmaxoft | 1 | -0/+3 | |
2014-01-13 | cCreeper is no longer available in API. | madmaxoft | 1 | -1/+0 | |
Has been replaced by cMonster. | |||||
2014-01-11 | Lua errors display stack trace. | madmaxoft | 1 | -0/+2 | |
Fixes #418. | |||||
2014-01-11 | Removed internal methods from public cLuaState interface. | madmaxoft | 1 | -38/+60 | |
PushFunction(), CallFunction() and GetReturn() are not to be called independently, but rather only by using the Call() templated overrides. Push() needs to be left in the public part, it is used for pushing results in the ManualBindings. Preparation for #418. | |||||
2013-12-31 | implemented the recommendations Xoft gave. | STRWarrior | 1 | -0/+1 | |
2013-12-22 | merged in warnings changes | Tycho Bickerstaff | 1 | -0/+21 | |
2013-12-29 | Added HOOK_PLUGINS_LOADED. | madmaxoft | 1 | -0/+19 | |
This fixes #482. | |||||
2013-12-22 | converted commneted paramater names to the unused macro | Tycho Bickerstaff | 1 | -20/+41 | |
2013-12-21 | Root is now warnings clean | Tycho Bickerstaff | 1 | -20/+20 | |
2013-12-08 | Moved bindings-related to a Bindings subfolder. | madmaxoft | 1 | -0/+0 | |
Ref.: #407 | |||||
2013-11-30 | Added the real tick duration to the OnWorldTick hook. | madmaxoft | 1 | -0/+16 | |
2013-11-26 | Fixed loads more of them. | Alexander Harkness | 1 | -1/+1 | |
2013-11-24 | Attempt to fix compilation | Tiger Wang | 1 | -1/+1 | |
2013-11-24 | Moved source to src | Alexander Harkness | 1 | -0/+0 | |
2013-11-22 | Added cFile:GetFolderContents(). | madmaxoft | 1 | -2/+5 | |
Fix 162. | |||||
2013-11-22 | Fixed cRoot:GetFurnaceRecipe() Lua binding. | madmaxoft | 1 | -1/+4 | |
2013-08-21 | Hook adding uses the new API. | madmaxoft | 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) | |||||
2013-08-21 | cLuaState: Added LogStackTrace() and GetTypeText() utility functions | madmaxoft | 1 | -0/+6 | |
2013-08-19 | Finished renaming cPlugin_NewLua to cPluginLua. | madmaxoft | 1 | -2/+2 | |
2013-08-11 | Added the OnHopperPullingItem and OnHopperPushingItem hooks. | madmaxoft | 1 | -0/+4 | |
Requested in FS 412, slightly modified the params. | |||||
2013-08-09 | Added OnExploding() and OnExploded() hooks. | madmaxoft | 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 | |||||
2013-08-08 | Removed LuaScript. | madmaxoft | 1 | -0/+4 | |
The WebAdmin now uses LuaState directly to call the one function it needs. | |||||
2013-08-08 | cPlugin_NewLua is now completely rewritten to use templated LuaState calls. | madmaxoft | 1 | -29/+86 | |
2013-08-08 | LuaState refactoring: using templates for hook function calls. | madmaxoft | 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. | |||||
2013-08-08 | Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks. | madmaxoft | 1 | -0/+2 | |
As requested in FS 418. | |||||
2013-08-07 | cLuaState has reference management, param checking and a fixed destructor. | madmaxoft | 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 *. | |||||
2013-08-06 | cLuaState now tracks the function name and number of args | madmaxoft | 1 | -4/+46 | |
2013-08-06 | cLuaState can now contain a detached LuaState, too. | madmaxoft | 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. | |||||
2013-08-04 | LuaState refactoring: initial part. | madmaxoft | 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 |