Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cPlugin_NewLua is now completely rewritten to use templated LuaState calls. | madmaxoft | 2013-08-08 | 1 | -6/+60 |
| | |||||
* | LuaState refactoring: using templates for hook function calls. | madmaxoft | 2013-08-08 | 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. | ||||
* | Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks. | madmaxoft | 2013-08-08 | 1 | -0/+13 |
| | | | | As requested in FS 418. | ||||
* | cLuaState has reference management, param checking and a fixed destructor. | madmaxoft | 2013-08-07 | 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 *. | ||||
* | cLuaScript now uses cLuaState | madmaxoft | 2013-08-06 | 1 | -1/+1 |
| | |||||
* | cLuaState now tracks the function name and number of args | madmaxoft | 2013-08-06 | 1 | -6/+182 |
| | |||||
* | cLuaState can now contain a detached LuaState, too. | madmaxoft | 2013-08-06 | 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. | ||||
* | LuaState refactoring: initial part. | madmaxoft | 2013-08-04 | 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 |