Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2014-01-11 | Lua errors display stack trace. | madmaxoft | 1 | -3/+25 | |
Fixes #418. | |||||
2014-01-11 | Removed internal methods from public cLuaState interface. | madmaxoft | 1 | -9/+17 | |
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. | |||||
2014-01-07 | LuaState can push strings with embedded NULs. | madmaxoft | 1 | -1/+1 | |
This also marginally improves performance, since a strlen() isn't called (inside lua_pushstring()), the string length is stored in the AString object directly. | |||||
2013-12-31 | implemented the recommendations Xoft gave. | STRWarrior | 1 | -0/+12 | |
2013-12-27 | Made cmake compilation possible on Windows. | madmaxoft | 1 | -2/+2 | |
2013-12-08 | Fixed tolua++ compilation. | madmaxoft | 1 | -1/+1 | |
Duplicate files, wrong includes, const-incorrect code... | |||||
2013-12-08 | Moved bindings-related to a Bindings subfolder. | madmaxoft | 1 | -0/+0 | |
Ref.: #407 | |||||
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 | -0/+33 | |
Fix 162. | |||||
2013-11-22 | Fixed cRoot:GetFurnaceRecipe() Lua binding. | madmaxoft | 1 | -0/+33 | |
2013-08-21 | cLuaState: Added LogStackTrace() and GetTypeText() utility functions | madmaxoft | 1 | -0/+43 | |
2013-08-19 | Finished renaming cPlugin_NewLua to cPluginLua. | madmaxoft | 1 | -2/+2 | |
2013-08-18 | Fixed assert failures in cLuaState when using it for pushing a StringVector. | madmaxoft | 1 | -31/+0 | |
2013-08-15 | Attempting to fix CentOS / gcc 4.4.7 compilation problem. | madmaxoft | 1 | -1/+1 | |
Reported by ThijsD in the forum http://forum.mc-server.org/showthread.php?tid=1220 | |||||
2013-08-11 | Added the OnHopperPullingItem and OnHopperPushingItem hooks. | madmaxoft | 1 | -0/+26 | |
Requested in FS 412, slightly modified the params. | |||||
2013-08-09 | Added OnExploding() and OnExploded() hooks. | madmaxoft | 1 | -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-08 | Removed LuaScript. | madmaxoft | 1 | -0/+26 | |
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 | -6/+60 | |
2013-08-08 | LuaState refactoring: using templates for hook function calls. | madmaxoft | 1 | -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-08 | Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks. | madmaxoft | 1 | -0/+13 | |
As requested in FS 418. | |||||
2013-08-07 | cLuaState has reference management, param checking and a fixed destructor. | madmaxoft | 1 | -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-06 | cLuaScript now uses cLuaState | madmaxoft | 1 | -1/+1 | |
2013-08-06 | cLuaState now tracks the function name and number of args | madmaxoft | 1 | -6/+182 | |
2013-08-06 | cLuaState can now contain a detached LuaState, too. | madmaxoft | 1 | -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-04 | LuaState refactoring: initial part. | madmaxoft | 1 | -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 |