summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Lua: Break into ZBS debugger on API errors.Mattes D2015-05-161-0/+26
|
* Moved cWorld manual bindings out into a separate file.Mattes D2015-05-131-1/+1
|
* ToLua now generates cLuaState::Push() and GetStackValue()Mattes D2015-05-121-371/+6
| | | | | For classes exported through ToLua it generates the cLuaState::Push() and cLuaState::GetStackValue() functions, as well as the supporting forward declarations and typedefs. Renamed virtual_method_hooks.lua to BindingsProcessor.lua since it no longer provides virtual method hooks and instead does additional processing when generating the bindings.
* OnExecuteCommand hook can override the command result (crXXX).Mattes D2015-05-101-0/+12
|
* Merge remote-tracking branch 'origin/master' into warningsTiger Wang2015-05-101-2/+2
|\ | | | | | | | | | | Conflicts: src/Mobs/Monster.cpp src/Vector3.h
| * More style checking.Mattes D2015-05-091-2/+2
| | | | | | | | Spaces around some operators are checked.
* | Fixed some Visual Studio warningsTiger Wang2015-05-091-3/+15
|/
* Fixed inter-plugin calls.Mattes D2015-05-071-9/+4
| | | | | When an inter-plugin call failed due to function not found, the server would maul the LuaState and "yield". Fixes #1959.
* Added support for additional data in the ParticleEffect Packettycho2015-05-071-0/+41
| | | | Also started refactoring how broadcasts are handled
* Added cBlockArea:GetNonAirCropRelCoords() API function.Mattes D2015-04-291-1/+31
| | | | Fixes #1915.
* Refactored ManualBindings' callbacks using templates.Mattes D2015-04-231-0/+18
| | | | | This is a bit easier to read, has better error reporting and fixes a few subtle bugs. Fixes #1889.
* Implemented cPluginManager:DoWithPlugin(), fixed ForEachPlugin().Mattes D2015-04-231-19/+89
| | | | Both functions are exported as static.
* cNetwork: Added UDP API.Mattes D2015-02-201-0/+12
|
* LuaAPI: Added client TLS support for TCP links.Mattes D2015-02-121-0/+12
|
* Exported cServerHandle and cNetwork:Listen to Lua.Mattes D2015-02-041-0/+33
| | | | Also added an example to the NetworkTest plugin.
* cNetwork: Exported the Connect() method and cTCPLink class to Lua.Mattes D2015-02-041-0/+12
|
* Fixed type-conversion warnings.Mattes D2015-01-181-1/+1
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-0/+7
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-27/+27
|
* LuaState: Projectiles are pushed using their full class.Mattes D2014-10-221-1/+1
|
* cLuaState: cEntity is pushed with specific type.Mattes D2014-10-211-7/+48
|
* Fixed a potential crash in cEntity bindings.Mattes D2014-10-201-2/+6
|
* cLuaState: cMonster descendants don't push their specific type.Mattes D2014-10-191-1/+10
| | | | The individual mob types aren't exported to Lua, so pushing them would crash the server.
* cLuaState: cBlockEntity descendants are pushed with proper class type.Mattes D2014-10-191-1/+1
|
* LuaState: Pushing a cEntity pushes the correct class name.Mattes D2014-10-191-1/+3
| | | | This makes Lua scripts easier, as they don't need to cast values from cEntity to the specific descendant.
* Fixed crash in ForEachEntityInBox API.madmaxoft2014-10-061-3/+11
| | | | Fixes #1511.
* LuaState: Fixed class value-getting off the stack.madmaxoft2014-09-031-4/+4
|
* Added cWorld::ForEachEntityInBox()madmaxoft2014-09-031-0/+26
|
* cLuaState: Fixed Vector3<> names pushed to Lua.Mattes D2014-08-221-5/+41
|
* Fixed style: spaces after commas.madmaxoft2014-07-191-2/+1
|
* Normalized comments.madmaxoft2014-07-171-2/+2
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Changed OnWeatherChanging hook to always read the returned weather.madmaxoft2014-07-031-0/+12
| | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1512
* Fixed OnProjectileHitBlock bindings.madmaxoft2014-06-031-61/+86
| | | | Also sorted the various cLuaState::Push() functions.
* Merge branch 'MacFixes'Tycho2014-04-021-0/+1
|\ | | | | | | | | | | Conflicts: src/DeadlockDetect.cpp src/World.cpp
| * More fixes to get it to compile for me on Mac 10.9. Mostly just newline additions, but some of the unused variables were causing errors, so I wrapped them in #ifndef __APPLE__ calls, since I didn't know if they were going to be used in the future.Samuel Barney2014-03-251-0/+1
| | | | | | | | Also had to undefine TOLUA_TEMPLATE_BIND a couple of times.
* | Fixed error when the hook gets called.STRWarrior2014-03-291-0/+12
|/
* Made pushing plain pointer to Lua a valid operation, with a warning.madmaxoft2014-03-201-2/+3
| | | | 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)
* Errors in Lua don't include the error handler in the stack trace.madmaxoft2014-03-191-5/+5
| | | | Fixes #817.
* Merge branch 'Werror' into warningsTycho2014-03-121-5/+9
|\ | | | | | | | | Conflicts: src/Globals.h
| * Fixed Lua string return values.madmaxoft2014-03-121-4/+0
| | | | | | | | Fixes #773.
| * Moved Lua API registering into a separate function.madmaxoft2014-03-121-1/+9
| | | | | | | | This will allow us to use Lua as lite-config files as well, should we want to.
* | Fixed a load of format string errorsTycho2014-03-111-1/+3
|/
* Fixed warningsTycho2014-03-071-0/+1
|
* cLuaState: Made public the GetStackValue() functions.madmaxoft2014-03-041-6/+12
|
* Manually exported g_Block tablesandrew2014-03-021-0/+2
|
* Attempted fix for several GCC warnings.madmaxoft2014-02-261-0/+7
|
* Add Lua plugin path to package.path and .cpath.madmaxoft2014-02-171-0/+26
| | | | Fixes #693.
* Added cLuaState::CheckParamFunctionOrNil().madmaxoft2014-02-111-2/+34
| | | | Also fixed error reporting for the two function-checking functions.
* Fixed nested plugin function calls.madmaxoft2014-02-111-6/+9
|
* cLuaState: Stack traces don't include ghost 0-th element.madmaxoft2014-02-101-1/+1
|
* cLuaState::cRef can be unbound and re-bound.madmaxoft2014-02-091-7/+45
| | | | This will allow us to store Lua references as member variables in classes and initialize those later than in the constructor.
* Removed a useless check in cLuaState.madmaxoft2014-02-041-3/+1
|
* Fixed calling plugins with userdata params.madmaxoft2014-02-041-0/+1
|
* Removed a leftover debug message.madmaxoft2014-02-041-1/+0
|
* Fixed error handling in cPluginManager:CallPlugin() API.madmaxoft2014-02-041-2/+5
| | | | Fixed: When the called function malfunctioned, the entire plugin's call was aborted.
* Improved error resistance in cPluginManager:CallPlugin().madmaxoft2014-02-041-0/+8
| | | | Fixed: If the call failed, all the next plugin calls would fail as well.
* Lua: Fixed an error in table-functions callbacks.madmaxoft2014-01-291-1/+5
|
* Implemented cPluginManager:CallPlugin() API.madmaxoft2014-01-211-16/+183
| | | | 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.
* cLuaState can now check function params.madmaxoft2014-01-191-0/+34
|
* cCreeper is no longer available in API.madmaxoft2014-01-131-12/+0
| | | | Has been replaced by cMonster.
* Lua errors display stack trace.madmaxoft2014-01-111-3/+25
| | | | Fixes #418.
* Removed internal methods from public cLuaState interface.madmaxoft2014-01-111-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.
* LuaState can push strings with embedded NULs.madmaxoft2014-01-071-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.
* implemented the recommendations Xoft gave.STRWarrior2013-12-311-0/+12
|
* Made cmake compilation possible on Windows.madmaxoft2013-12-271-2/+2
|
* Fixed tolua++ compilation.madmaxoft2013-12-081-1/+1
| | | | Duplicate files, wrong includes, const-incorrect code...
* Moved bindings-related to a Bindings subfolder.madmaxoft2013-12-081-0/+1024
Ref.: #407