aboutsummaryrefslogtreecommitdiff
path: root/build/android/jni
Commit message (Expand)AuthorAge
* Update embedded jsoncpp from unk version to 0.10.6 + move libs to lib/ instea...Loïc Blot2017-04-02
* Add missing source to android build (#5496)Uwe Koloska2017-04-01
* Fix undefined references (#5400)Wayward One2017-03-15
* Fix android buildLoic Blot2017-02-08
* Add ItemStack key-value meta storagerubenwardy2017-02-04
* Derive NodeMetaRef from MetaDataRefrubenwardy2017-02-04
* Derive NodeMetadata from Metadatarubenwardy2017-02-04
* Environment & IGameDef code refactoring (#4985)Ner'zhul2017-01-09
* Add raycast.cpp and tileanimation.cpp to Android.mkWayward12017-01-05
* Android: fix build and update depsest312016-12-07
* Add missing remoteplayer.cpp to Android buildNer'zhul2016-10-28
* Fix for failure to find jsoncpp in android build (#4456)Rogier-52016-08-19
* Add MapSettingsManager and new mapgen setting script API functionskwolekr2016-07-03
* Fix android buildest312016-06-11
* Upgrade Android build to Gradle build systemShadowNinja2016-04-28
* Move AreaStore to utilShadowNinja2016-03-07
* Update Android dependencies, -O3 optimization, remove old ARMv5 configMaksim Gamarnik2016-03-05
* Fix android buildest312016-02-23
* Add Valleys mapgen.Duane Robertson2016-01-14
* Fix android buildest312015-12-11
* Mapgen: Add flat mapgen in hidden formparamat2015-11-11
* Android/Mapgen: Add fractal mapgen file to android makefilesparamat2015-10-06
* Fix Android build of threading sourcesShadowNinja2015-08-24
* Clean up threadingShadowNinja2015-08-23
* Android: fix horrible libiconv buildest312015-07-29
* Add AreaStore data structureest312015-07-27
* Add minimap featureRealBadAngel2015-06-27
* Add utf-8 conversion utilities and re-add intlGUIEditBoxest312015-06-13
* Split ObjDef/ObjDefManager out to objdef.cppkwolekr2015-05-18
* Add mod securityShadowNinja2015-05-16
* Make early protocol auth mechanism generic, and add SRPest312015-05-11
* Add LibGMPest312015-05-11
* Tests: Add schematic unittestskwolekr2015-05-08
* Tests: Add NodeResolver unittestskwolekr2015-05-05
* Tests: Add ObjDef unittestskwolekr2015-05-03
* Fix MSVC compatibilitykwolekr2015-04-29
* Tests: Modularize unit testingkwolekr2015-04-26
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-01
* Clean scaling pre-filter for formspec/HUD.Aaron Suen2015-04-01
* Rename packethandler/{client,server}.cpp to {client,server}packethandler.cppLoic Blot2015-03-16
* Replace std::list to std::vector into tile.cpp (m_texture_trash) and move til...Loic Blot2015-03-05
* Fix android buildLoic Blot2015-02-21
* Update missing files for Android.mkLoic Blot2015-02-18
* Android build fixLoic Blot2015-02-18
* main.cpp rework * Move ClientLauncher class to a dedicated file * ClientLaunc...Loic Blot2015-02-12
* Fix Android build since a704c04f00bfea4b77550169fa08105c2ee0dfd0Oxh. ok @zeno-Loic Blot2015-02-11
* Android, build: Update curl to 7.40.00sapier2015-01-15
* Switch android build to external sqlite3sapier2015-01-07
* Fix broken android version due to new openssl not linking correct to curlsapier2015-01-05
* Switch to official openssl version and update to 1.0.1jsapier2015-01-04
entParamType2[] = { {CPT2_NONE, "none"}, {CPT2_FULL, "full"}, {CPT2_FLOWINGLIQUID, "flowingliquid"}, {CPT2_FACEDIR, "facedir"}, {CPT2_WALLMOUNTED, "wallmounted"}, {CPT2_LEVELED, "leveled"}, {0, NULL}, }; struct EnumString ScriptApiNode::es_LiquidType[] = { {LIQUID_NONE, "none"}, {LIQUID_FLOWING, "flowing"}, {LIQUID_SOURCE, "source"}, {0, NULL}, }; struct EnumString ScriptApiNode::es_ContentParamType[] = { {CPT_NONE, "none"}, {CPT_LIGHT, "light"}, {0, NULL}, }; struct EnumString ScriptApiNode::es_NodeBoxType[] = { {NODEBOX_REGULAR, "regular"}, {NODEBOX_FIXED, "fixed"}, {NODEBOX_WALLMOUNTED, "wallmounted"}, {NODEBOX_LEVELED, "leveled"}, {0, NULL}, }; ScriptApiNode::ScriptApiNode() { } ScriptApiNode::~ScriptApiNode() { } bool ScriptApiNode::node_on_punch(v3s16 p, MapNode node, ServerActiveObject *puncher, PointedThing pointed) { SCRIPTAPI_PRECHECKHEADER lua_pushcfunction(L, script_error_handler); int errorhandler = lua_gettop(L); INodeDefManager *ndef = getServer()->ndef(); // Push callback function on stack if(!getItemCallback(ndef->get(node).name.c_str(), "on_punch")) return false; // Call function push_v3s16(L, p); pushnode(L, node, ndef); objectrefGetOrCreate(puncher); pushPointedThing(pointed); if(lua_pcall(L, 4, 0, errorhandler)) scriptError(); lua_pop(L, 1); // Pop error handler return true; } bool ScriptApiNode::node_on_dig(v3s16 p, MapNode node, ServerActiveObject *digger) { SCRIPTAPI_PRECHECKHEADER lua_pushcfunction(L, script_error_handler); int errorhandler = lua_gettop(L); INodeDefManager *ndef = getServer()->ndef(); // Push callback function on stack if(!getItemCallback(ndef->get(node).name.c_str(), "on_dig")) return false; // Call function push_v3s16(L, p); pushnode(L, node, ndef); objectrefGetOrCreate(digger); if(lua_pcall(L, 3, 0, errorhandler)) scriptError(); lua_pop(L, 1); // Pop error handler return true; } void ScriptApiNode::node_on_construct(v3s16 p, MapNode node) { SCRIPTAPI_PRECHECKHEADER lua_pushcfunction(L, script_error_handler); int errorhandler = lua_gettop(L); INodeDefManager *ndef = getServer()->ndef(); // Push callback function on stack if(!getItemCallback(ndef->get(node).name.c_str(), "on_construct")) return; // Call function push_v3s16(L, p); if(lua_pcall(L, 1, 0, errorhandler)) scriptError(); lua_pop(L, 1); // Pop error handler } void ScriptApiNode::node_on_destruct(v3s16 p, MapNode node) { SCRIPTAPI_PRECHECKHEADER lua_pushcfunction(L, script_error_handler); int errorhandler = lua_gettop(L); INodeDefManager *ndef = getServer()->ndef(); // Push callback function on stack if(!getItemCallback(ndef->get(node).name.c_str(), "on_destruct")) return; // Call function push_v3s16(L, p); if(lua_pcall(L, 1, 0, errorhandler)) scriptError(); lua_pop(L, 1); // Pop error handler } void ScriptApiNode::node_after_destruct(v3s16 p, MapNode node) { SCRIPTAPI_PRECHECKHEADER lua_pushcfunction(L, script_error_handler); int errorhandler = lua_gettop(L); INodeDefManager *ndef = getServer()->ndef(); // Push callback function on stack if(!getItemCallback(ndef->get(node).name.c_str(), "after_destruct")) return; // Call function push_v3s16(L, p); pushnode(L, node, ndef); if(lua_pcall(L, 2, 0, errorhandler)) scriptError(); lua_pop(L, 1); // Pop error handler } bool ScriptApiNode::node_on_timer(v3s16 p, MapNode node, f32 dtime) { SCRIPTAPI_PRECHECKHEADER lua_pushcfunction(L, script_error_handler); int errorhandler = lua_gettop(L); INodeDefManager *ndef = getServer()->ndef(); // Push callback function on stack if(!getItemCallback(ndef->get(node).name.c_str(), "on_timer")) return false; // Call function push_v3s16(L, p); lua_pushnumber(L,dtime); if(lua_pcall(L, 2, 1, errorhandler)) scriptError(); lua_remove(L, errorhandler); // Remove error handler return (bool) lua_isboolean(L, -1) && (bool) lua_toboolean(L, -1) == true; } void ScriptApiNode::node_on_receive_fields(v3s16 p, const std::string &formname, const std::map<std::string, std::string> &fields, ServerActiveObject *sender) { SCRIPTAPI_PRECHECKHEADER lua_pushcfunction(L, script_error_handler); int errorhandler = lua_gettop(L); INodeDefManager *ndef = getServer()->ndef(); // If node doesn't exist, we don't know what callback to call MapNode node = getEnv()->getMap().getNodeNoEx(p); if(node.getContent() == CONTENT_IGNORE) return; // Push callback function on stack if(!getItemCallback(ndef->get(node).name.c_str(), "on_receive_fields")) return; // Call function push_v3s16(L, p); // pos lua_pushstring(L, formname.c_str()); // formname lua_newtable(L); // fields for(std::map<std::string, std::string>::const_iterator i = fields.begin(); i != fields.end(); i++){ const std::string &name = i->first; const std::string &value = i->second; lua_pushstring(L, name.c_str()); lua_pushlstring(L, value.c_str(), value.size()); lua_settable(L, -3); } objectrefGetOrCreate(sender); // player if(lua_pcall(L, 4, 0, errorhandler)) scriptError(); lua_pop(L, 1); // Pop error handler } void ScriptApiNode::node_falling_update(v3s16 p) { SCRIPTAPI_PRECHECKHEADER lua_pushcfunction(L, script_error_handler); int errorhandler = lua_gettop(L); lua_getglobal(L, "nodeupdate"); push_v3s16(L, p); if(lua_pcall(L, 1, 0, errorhandler)) scriptError(); lua_pop(L, 1); // Pop error handler } void ScriptApiNode::node_falling_update_single(v3s16 p) { SCRIPTAPI_PRECHECKHEADER lua_pushcfunction(L, script_error_handler); int errorhandler = lua_gettop(L); lua_getglobal(L, "nodeupdate_single"); push_v3s16(L, p); if(lua_pcall(L, 1, 0, errorhandler)) scriptError(); lua_pop(L, 1); // Pop error handler }