aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_server.cpp
Commit message (Expand)AuthorAge
* Push error handler afresh each time lua_pcall is usedKahrl2015-08-27
* SAPI: Track last executed mod and include in error messageskwolekr2015-08-12
* Improve Script CPP API diagnosticskwolekr2015-08-05
* Use "core" namespace internallyShadowNinja2014-05-08
* Only push the Lua error handler onceShadowNinja2014-04-27
* Remove lua_State parameter from LuaError::LuaErrorShadowNinja2014-03-15
* Revert "Make sure we get a stacktrace for as many lua errors as possible"ShadowNinja2014-03-15
* Make sure we get a stacktrace for as many lua errors as possibleSfan52014-03-15
* Handle LuaErrors in Lua -> C++ calls on LuaJITShadowNinja2013-12-18
* Pass a errfunc to lua_pcall to get a tracebackShadowNinja2013-11-15
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
ass="hl pps">"cpp_api/s_item.h" #include "irr_v3d.h" struct ItemStack; class ScriptApiNodemeta : virtual public ScriptApiBase, public ScriptApiItem { public: ScriptApiNodemeta(); virtual ~ScriptApiNodemeta(); // Return number of accepted items to be moved int nodemeta_inventory_AllowMove(v3s16 p, const std::string &from_list, int from_index, const std::string &to_list, int to_index, int count, ServerActiveObject *player); // Return number of accepted items to be put int nodemeta_inventory_AllowPut(v3s16 p, const std::string &listname, int index, ItemStack &stack, ServerActiveObject *player); // Return number of accepted items to be taken int nodemeta_inventory_AllowTake(v3s16 p, const std::string &listname, int index, ItemStack &stack, ServerActiveObject *player); // Report moved items void nodemeta_inventory_OnMove(v3s16 p, const std::string &from_list, int from_index, const std::string &to_list, int to_index, int count, ServerActiveObject *player); // Report put items void nodemeta_inventory_OnPut(v3s16 p, const std::string &listname, int index, ItemStack &stack, ServerActiveObject *player); // Report taken items void nodemeta_inventory_OnTake(v3s16 p, const std::string &listname, int index, ItemStack &stack, ServerActiveObject *player); private: }; #endif /* S_NODEMETA_H_ */