Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2017-09-02 | Revert "Replace ItemCallbacks with lambdas (#3948)" | LogicParrot | 1 | -1/+1 | |
This reverts commit 496c337cdfa593654018c171f6a74c28272265b5. | |||||
2017-09-01 | Replace ItemCallbacks with lambdas (#3948) | peterbell10 | 1 | -1/+1 | |
2017-08-25 | Add cUUID class (#3871) | peterbell10 | 1 | -0/+5 | |
2017-08-24 | Minor changes (#3909) | mathiascode | 1 | -1/+1 | |
2017-08-18 | Represent cItem::m_Lore as an AStringVector (#3882) | peterbell10 | 1 | -0/+1 | |
* Replace cItem::m_Lore with AStringVector * Reword deprecation warning * Fix lua bindings | |||||
2017-08-17 | Add cLuaWindow OnClicked Callback (#3901) | Lane Kolbly | 1 | -0/+1 | |
2017-08-04 | Fixed compilation for clang 4.0 & gcc 7.1 | Dan Čermák | 1 | -0/+3 | |
2017-08-03 | Remove double includes part 2 (#3890) | peterbell10 | 1 | -2/+0 | |
2017-08-03 | Removed unused forward declarations (#3888) | Lukas Pioch | 1 | -1/+0 | |
2017-07-21 | Remove smart pointer macros | peterbell10 | 1 | -7/+7 | |
2017-06-26 | Moved ApiParamError into cLuaState. | Mattes D | 1 | -0/+9 | |
2017-06-24 | cBlockArea supports block entities. (#3795) | Mattes D | 1 | -0/+4 | |
2017-06-22 | NetworkSingleton: Fixed a throw warning in VS2017. (#3792) | Mattes D | 1 | -3/+3 | |
Also fixed the misleading name. | |||||
2017-06-19 | LuaState: Fixed VS2017's throw warnings for destructors. (#3779) | Mattes D | 1 | -3/+3 | |
2017-06-09 | Fixed handling Lua errors in nested callbacks (#3755) | Mattes D | 1 | -1/+36 | |
2017-05-09 | Fixed Lua bindings for const objects. | Mattes D | 1 | -8/+2 | |
2017-01-18 | DeadlockDetect now lists some tracked CS's stats. | Mattes D | 1 | -0/+7 | |
2017-01-15 | LuaState: Fixed untracking references. | Mattes D | 1 | -1/+2 | |
One thread may untrack a ref while another thread was closing the LuaState, which had emptied the tracked refs. | |||||
2017-01-13 | Fixed race conditions and forgotten clear in Lua ref tracking. (#3530) | Mattes D | 1 | -9/+15 | |
This fixes occasional crashes on plugin reload. | |||||
2017-01-09 | LuaState: Fixed race condition in ref tracking. (#3529) | Mattes D | 1 | -1/+1 | |
2016-11-10 | LuaState: Fixed stack balance when calling functions (#3428) | Mattes D | 1 | -2/+55 | |
2016-08-23 | cUrlClient: Exported to Lua API. | Mattes D | 1 | -0/+24 | |
2016-08-22 | cLuaState: Moved function param counting to PushCallPop() template. | Mattes D | 1 | -0/+2 | |
The Push() functions can be used not only for function params, but also returns or temporaries, so it doesn't make sense to count the params there. | |||||
2016-08-22 | cLuaState: Added direct support for pushing a nil constant. | Mattes D | 1 | -3/+9 | |
2016-08-22 | cLuaState: Added support for optional params and AStringMap values. | Mattes D | 1 | -4/+35 | |
2016-08-21 | cLuaState: Added template to push multiple values in a single call. (#3331) | Mattes D | 1 | -3/+12 | |
2016-08-14 | Fixed cWorld:ChunkStay bindings. (#3319) | Mattes D | 1 | -6/+73 | |
Introduced new cLuaState::cOptionalCallback for representing optional callbacks (nil from Lua side). Introduced new cLuaState::cStackTable class for easy access to Lua table's elements. Fixes #3305. | |||||
2016-08-13 | Converted cLuaState::cTableRef to use cTrackedRef. | Mattes D | 1 | -62/+139 | |
This makes the table-based callbacks resistent to LuaState unloads and safer to use. | |||||
2016-08-04 | Fixed RasPi builds of unit tests. | Mattes D | 1 | -2/+1 | |
On RasPi with gcc 4.8.2, the asserts wouldn't compile when tests were enabled. Enforced the assumption that ASSERT code is generated only in Debug builds. | |||||
2016-06-27 | Converted cLuaState::cCallbackPtr into a UniquePtr. | Mattes D | 1 | -1/+3 | |
2016-06-27 | Removed dead code related to callbacks. | Mattes D | 1 | -9/+1 | |
2016-06-27 | LuaState: Implemented proper locking for cCallback. | Mattes D | 1 | -14/+43 | |
2016-06-27 | Changed cLuaWindow callbacks to use cLuaState::cCallback. | Mattes D | 1 | -2/+22 | |
2016-06-27 | Changed plugin hook registrations to use cLuaState::cCallback. | Mattes D | 1 | -1/+5 | |
2016-06-27 | Added cLuaState::cCallback for representing (resettable) Lua callbacks. | Mattes D | 1 | -3/+86 | |
2016-05-31 | LuaState: Inter-plugin calls now support simple tables. (#3220) | Mattes D | 1 | -2/+14 | |
2016-03-21 | Revert "Lua callback" | Mattes D | 1 | -112/+5 | |
2016-03-17 | Changed cLuaWindow callbacks to use cLuaState::cCallback. | Mattes D | 1 | -2/+22 | |
2016-03-17 | Changed plugin hook registrations to use cLuaState::cCallback. | Mattes D | 1 | -1/+5 | |
2016-03-17 | Added cLuaState::cCallback for representing (resettable) Lua callbacks. | Mattes D | 1 | -3/+86 | |
2016-02-05 | Bulk clearing of whitespace | LogicParrot | 1 | -49/+49 | |
2015-12-18 | Revised the explosion-related Lua API and docs. | Mattes D | 1 | -1/+3 | |
Fixes #2746. | |||||
2015-12-01 | Added PieceStructures generator. | Mattes D | 1 | -6/+18 | |
2015-09-28 | Added LuaState tracker and memory stats logging. | Mattes D | 1 | -0/+37 | |
2015-09-26 | Extended and fixed the cFile API. | Mattes D | 1 | -0/+1 | |
2015-07-29 | Silenced and fixed many warning messages across multiple files. | Samuel Barney | 1 | -0/+1 | |
2015-06-19 | Externalized cPrefabPiecePool self-test. | Mattes D | 1 | -3/+4 | |
2015-06-17 | LuaState: Added support for config-style usage. | Mattes D | 1 | -26/+123 | |
Globals and table values can be queried from the Lua state easily. Use perfect forwarding. | |||||
2015-05-24 | Made -Weverything an error. | tycho | 1 | -1/+1 | |
2015-05-19 | Added LuaState support for all integral types | tycho | 1 | -14/+38 | |
All so added error handling for out of range values | |||||
2015-05-16 | Lua: Break into ZBS debugger on API errors. | Mattes D | 1 | -0/+3 | |
2015-05-12 | ToLua now generates cLuaState::Push() and GetStackValue() | Mattes D | 1 | -74/+11 | |
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. | |||||
2015-05-10 | OnExecuteCommand hook can override the command result (crXXX). | Mattes D | 1 | -1/+2 | |
2015-05-09 | Fixed some Visual Studio warnings | Tiger Wang | 1 | -0/+1 | |
2015-05-07 | Added support for additional data in the ParticleEffect Packet | tycho | 1 | -0/+6 | |
Also started refactoring how broadcasts are handled | |||||
2015-04-29 | Added cBlockArea:GetNonAirCropRelCoords() API function. | Mattes D | 1 | -0/+4 | |
Fixes #1915. | |||||
2015-04-23 | Refactored ManualBindings' callbacks using templates. | Mattes D | 1 | -0/+3 | |
This is a bit easier to read, has better error reporting and fixes a few subtle bugs. Fixes #1889. | |||||
2015-04-23 | Implemented cPluginManager:DoWithPlugin(), fixed ForEachPlugin(). | Mattes D | 1 | -39/+36 | |
Both functions are exported as static. | |||||
2015-02-20 | cNetwork: Added UDP API. | Mattes D | 1 | -0/+2 | |
2015-02-12 | LuaAPI: Added client TLS support for TCP links. | Mattes D | 1 | -0/+2 | |
2015-02-04 | Exported cServerHandle and cNetwork:Listen to Lua. | Mattes D | 1 | -0/+9 | |
Also added an example to the NetworkTest plugin. | |||||
2015-02-04 | cNetwork: Exported the Connect() method and cTCPLink class to Lua. | Mattes D | 1 | -0/+2 | |
2015-01-31 | Switched LuaState to use sizeof... | tycho | 1 | -15/+1 | |
2015-01-11 | Initial convertion of a_Dt to std::chrono | Tycho | 1 | -0/+1 | |
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay | |||||
2014-10-31 | cLuaState: Fixed errors on non-existent callbacks. | Mattes D | 1 | -1/+5 | |
This mostly affected table-based callbacks, such as the cLineBlockTracer. If a callback didn't exist, the code would still push its arguments on the stack, breaking the next callback. | |||||
2014-10-23 | En masse NULL -> nullptr replace | Tiger Wang | 1 | -3/+3 | |
2014-10-20 | En masse NULL -> nullptr replace | Tiger Wang | 1 | -3/+3 | |
2014-10-19 | Fixed minor style issues. | Mattes D | 1 | -1/+1 | |
2014-10-16 | Use universal references | worktycho | 1 | -4/+4 | |
2014-10-15 | cLuaState::Call() uses variadic templates. | Mattes D | 1 | -3/+75 | |
(doesn't compile) | |||||
2014-10-06 | Fixed crash in ForEachEntityInBox API. | madmaxoft | 1 | -1/+1 | |
Fixes #1511. | |||||
2014-09-26 | Removed a few unnessicary includes | Tycho | 1 | -1/+0 | |
2014-09-03 | LuaState: Fixed referenced function pushing. | madmaxoft | 1 | -0/+8 | |
The references are no longer destroyed by the call. | |||||
2014-09-03 | Added cWorld::ForEachEntityInBox() | madmaxoft | 1 | -0/+10 | |
2014-08-22 | cLuaState: Fixed Vector3<> names pushed to Lua. | Mattes D | 1 | -0/+3 | |
2014-07-17 | Normalized comments. | madmaxoft | 1 | -1/+1 | |
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. | |||||
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 |