aboutsummaryrefslogtreecommitdiff
path: root/util
Commit message (Expand)AuthorAge
...
* Add clang format & skip build if no source file modified (#5433)Loïc Blot2017-03-25
* CI: Add memleak checking using valgrind (#5350)Loïc Blot2017-03-06
* Travis: Build server too for UNIXLoïc Blot2017-01-04
* Buildbot: Update Gettext version (#4971)sfan52016-12-29
* Buildbot: Update LuaJIT versionsfan52016-12-08
* Travis: Only trigger a compile, when C/C++ related files were touched (#4284)Tim2016-10-15
* Fix macosx build by disabling postgresql upgradeLoic Blot2016-10-06
* Travis: build matrix improvements + CPP11 buildLoic Blot2016-10-06
* Update library versions in buildbotsfan52016-09-21
* buildbot: retrieve short commit hash properlyFernando Carmona Varo2016-07-29
* Implement a PostgreSQL backendLoic Blot2016-05-22
* Upgrade Android build to Gradle build systemShadowNinja2016-04-28
* Tweak travis scriptShadowNinja2016-03-19
* Implement OSX Travis buildsPavel Puchkin2016-02-04
* Update URLs for buildbot & travissfan52015-12-26
* Make travis work againest312015-12-05
* Re-add "file" type for --add-location for xgettext callest312015-10-17
* New settings tab contain all possible settingsPilzAdam2015-10-17
* Don't add line number to comment when running updatepo.shest312015-09-02
* Add fgettext_ne as keyword to updatepo.shest312015-08-25
* Update toolchain_mingw64.cmakeRui2015-07-18
* Add LibGMPest312015-05-11
* Replaced libjpeg dependency on apt-get, it should be libjpeg-dev instead of l...Megaf2015-05-11
* Make Git version detection use VERSION_STRING instead of tagsShadowNinja2015-05-05
* Clean up and tweak build systemShadowNinja2015-03-27
* Rename --do-unittests to --run-unittests as @Zeno- and @sfan5 requestedLoic Blot2015-02-24
* Unit tests must be done at integration process.Loic Blot2015-02-21
* Add LevelDB and redis to Travis Linux buildssfan52015-02-16
* Reduce gettext wide/narrow and string/char* conversionsShadowNinja2015-02-05
* Add wstrgettext to list of translation update keywordsShadowNinja2015-02-05
* Add SQLite3 libraries to buildbotsfan52015-01-08
* Fix buildbot (was broken by 04a1a446cf845a0db80d39fd0e42771aa07e4492)sfan52015-01-06
* Add util/bump_version.shKahrl2014-12-30
* Update MinGW toolchain downloads used by travissfan52014-12-23
* Build for win32 & win64 on Travis toosfan52014-12-06
* Update the cURL the buildbot uses to 7.38.0sfan52014-10-19
* updatepo.sh: Find all filesDiego Martínez2014-09-30
* Add ZLIBWAPI_DLL and LEVELDB_DLL CMake options Remove legacy MINGWM10_DLL CMa...sfan52014-07-29
* Move master server to seperate repositoryShadowNinja2014-06-30
* Masterserver: Fix compiling servers.jstproller2014-06-30
* Masterserver: Fix undefined playersproller2014-06-28
* Update buildbot scripts and add 64-bit buildbotsfan52014-06-18
* Fix null string escapeproller2014-02-24
* Send long announce as POST, show OS in useragentproller2014-01-07
* Rename names -> can_see_far_names in announceproller2013-12-03
* Remove link to #, add unlimited_player_transfer_distance to announceproller2013-12-03
* Masterserver uptime fixproller2013-11-05
* Fix masterserver README.mdIlya Zhuravlev2013-11-04
* Masterserver fixesproller2013-11-04
* Masterserver show privs and js autoloadproller2013-11-04
ass="hl kwd">l_get_meta(lua_State *L); // get_node_timer(pos) static int l_get_node_timer(lua_State *L); // add_entity(pos, entityname) -> ObjectRef or nil // pos = {x=num, y=num, z=num} static int l_add_entity(lua_State *L); // add_item(pos, itemstack or itemstring or table) -> ObjectRef or nil // pos = {x=num, y=num, z=num} static int l_add_item(lua_State *L); // get_player_by_name(name) static int l_get_player_by_name(lua_State *L); // get_objects_inside_radius(pos, radius) static int l_get_objects_inside_radius(lua_State *L); // set_timeofday(val) // val = 0...1 static int l_set_timeofday(lua_State *L); // get_timeofday() -> 0...1 static int l_get_timeofday(lua_State *L); // get_gametime() static int l_get_gametime(lua_State *L); // find_node_near(pos, radius, nodenames) -> pos or nil // nodenames: eg. {"ignore", "group:tree"} or "default:dirt" static int l_find_node_near(lua_State *L); // find_nodes_in_area(minp, maxp, nodenames) -> list of positions // nodenames: eg. {"ignore", "group:tree"} or "default:dirt" static int l_find_nodes_in_area(lua_State *L); // find_surface_nodes_in_area(minp, maxp, nodenames) -> list of positions // nodenames: eg. {"ignore", "group:tree"} or "default:dirt" static int l_find_nodes_in_area_under_air(lua_State *L); // emerge_area(p1, p2) static int l_emerge_area(lua_State *L); // delete_area(p1, p2) -> true/false static int l_delete_area(lua_State *L); // get_perlin(seeddiff, octaves, persistence, scale) // returns world-specific PerlinNoise static int l_get_perlin(lua_State *L); // get_perlin_map(noiseparams, size) // returns world-specific PerlinNoiseMap static int l_get_perlin_map(lua_State *L); // get_voxel_manip() // returns world-specific voxel manipulator static int l_get_voxel_manip(lua_State *L); // clear_objects() // clear all objects in the environment static int l_clear_objects(lua_State *L); // spawn_tree(pos, treedef) static int l_spawn_tree(lua_State *L); // line_of_sight(pos1, pos2, stepsize) -> true/false static int l_line_of_sight(lua_State *L); // find_path(pos1, pos2, searchdistance, // max_jump, max_drop, algorithm) -> table containing path static int l_find_path(lua_State *L); // transforming_liquid_add(pos) static int l_transforming_liquid_add(lua_State *L); // forceload_block(blockpos) // forceloads a block static int l_forceload_block(lua_State *L); // forceload_free_block(blockpos) // stops forceloading a position static int l_forceload_free_block(lua_State *L); public: static void Initialize(lua_State *L, int top); }; class LuaABM : public ActiveBlockModifier { private: int m_id; std::set<std::string> m_trigger_contents; std::set<std::string> m_required_neighbors; float m_trigger_interval; u32 m_trigger_chance; bool m_simple_catch_up; public: LuaABM(lua_State *L, int id, const std::set<std::string> &trigger_contents, const std::set<std::string> &required_neighbors, float trigger_interval, u32 trigger_chance, bool simple_catch_up): m_id(id), m_trigger_contents(trigger_contents), m_required_neighbors(required_neighbors), m_trigger_interval(trigger_interval), m_trigger_chance(trigger_chance), m_simple_catch_up(simple_catch_up) { } virtual std::set<std::string> getTriggerContents() { return m_trigger_contents; } virtual std::set<std::string> getRequiredNeighbors() { return m_required_neighbors; } virtual float getTriggerInterval() { return m_trigger_interval; } virtual u32 getTriggerChance() { return m_trigger_chance; } virtual bool getSimpleCatchUp() { return m_simple_catch_up; } virtual void trigger(ServerEnvironment *env, v3s16 p, MapNode n, u32 active_object_count, u32 active_object_count_wider); }; struct ScriptCallbackState { GameScripting *script; int callback_ref; int args_ref; unsigned int refcount; std::string origin; }; #endif /* L_ENV_H_ */