aboutsummaryrefslogtreecommitdiff
path: root/src/util/serialize.cpp
Commit message (Expand)AuthorAge
* serialize.h: use machine native byte swapping if available, fall-back to prev...Rafael Reilova2014-11-21
* Fix serializing of signed numbers in serializeStructToStringShadowNinja2014-03-21
* Make serializeStructToString use an ostringstreamShadowNinja2014-03-15
* Revert "Use fixed-width format specifiers in serializeStructToString"ShadowNinja2014-03-14
* Use fixed-width format specifiers in serializeStructToStringShadowNinja2014-03-13
* Replace usage of long long with u64/s64ShadowNinja2014-03-12
* Add minetest.set_noiseparam_defaults() Lua APIkwolekr2014-02-15
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
* Update Copyright YearsSfan52013-02-24
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
* Initially split utility.h to multiple files in util/Perttu Ahola2012-06-17
an class="hl opt">&channel, const std::string &sender, const std::string &message) { SCRIPTAPI_PRECHECKHEADER // Get core.registered_on_generateds lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_modchannel_message"); // Call callbacks lua_pushstring(L, channel.c_str()); lua_pushstring(L, sender.c_str()); lua_pushstring(L, message.c_str()); runCallbacks(3, RUN_CALLBACKS_MODE_AND); } void ScriptApiModChannels::on_modchannel_signal( const std::string &channel, ModChannelSignal signal) { SCRIPTAPI_PRECHECKHEADER // Get core.registered_on_generateds lua_getglobal(L, "core"); lua_getfield(L, -1, "registered_on_modchannel_signal"); // Call callbacks lua_pushstring(L, channel.c_str()); lua_pushinteger(L, (int)signal); runCallbacks(2, RUN_CALLBACKS_MODE_AND); }