aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_mapgen.h
Commit message (Expand)AuthorAge
* Allow more than 255 biomes, document new maximum (#9855)Paramat2020-05-20
* Add function `minetest.read_schematic`upsilon2019-08-14
* Biome API: Add 'get_biome_name(biome_id)' APIparamat2018-03-11
* Spawn level: Add 'get_spawn_level(x, z)' APIparamat2018-03-10
* Gennotify: Add 'minetest.get_decoration_id' APIparamat2018-03-03
* Place schematic (on vmanip): Enable use of 'place center' flagsparamat2018-02-27
* Biomes: Add 'get heat', 'get humidity', 'get biome data' APIsparamat2018-01-16
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
* Clang-format: fix some header files and remove them from whitelistLoic Blot2017-04-07
* Add MapSettingsManager and new mapgen setting script API functionskwolekr2016-07-03
* Schematics: Add core.place_schematic_on_vmanip APIkwolekr2015-11-05
* Add get_biome_id(biome_name) callbackDuane Robertson2015-10-02
* Add some missing getter functions to the lua APITeTpaAka2015-05-28
* Schematics: Refactor NodeResolver and add NodeResolveMethodkwolekr2015-04-16
* Schematics: Reorganize (de)serialization and add Lua serialization APIkwolekr2015-04-13
* ObjDefManager, Mapgen SAPI: Huge refactoringkwolekr2015-03-31
* Add core.register_schematic() and cache schematics on usekwolekr2015-03-23
* lua_api/l_mapgen: Fix overlapping areas of minetest.generate_ores/decorationsparamat2015-03-11
* Fix all warnings and remove -Wno-unused-but-set cflagkwolekr2015-01-18
* Add minetest.generate_ores() and minetest.generate_decorations()kwolekr2015-01-04
* Expose mapgen parameters on scripting initkwolekr2014-12-29
* Redefine NodeResolver interface and replace with callback mechanismkwolekr2014-12-27
* Add minetest.clear_registered_decorations() and clear_registered_ores()kwolekr2014-12-12
* Move get_schematic and read_schematic to l_mapgen.cppkwolekr2014-12-10
* Rename and repurpose minetest.set_noiseparam_defaults to set_noiseparamskwolekr2014-12-09
* Add minetest.clear_registered_biomes() apikwolekr2014-12-06
* Add Generator Element Management frameworkkwolekr2014-11-12
* Refactor decoration-related codekwolekr2014-10-29
* Use "core" namespace internallyShadowNinja2014-05-08
* Add minetest.set_noiseparam_defaults() Lua APIkwolekr2014-02-15
* Add map feature generation notify Lua APIkwolekr2013-12-14
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
bool initDatabase(); bool registerRow(const ActionRow & row); const std::list<ActionRow> actionRowsFromSelect(sqlite3_stmt * stmt); ActionRow actionRowFromRollbackAction(const RollbackAction & action); const std::list<RollbackAction> rollbackActionsFromActionRows( const std::list<ActionRow> & rows); const std::list<ActionRow> getRowsSince(time_t firstTime, const std::string & actor); const std::list<ActionRow> getRowsSince_range(time_t firstTime, v3s16 p, int range, int limit); const std::list<RollbackAction> getActionsSince_range(time_t firstTime, v3s16 p, int range, int limit); const std::list<RollbackAction> getActionsSince(time_t firstTime, const std::string & actor = ""); void migrate(const std::string & filepath); static float getSuspectNearness(bool is_guess, v3s16 suspect_p, time_t suspect_t, v3s16 action_p, time_t action_t); IGameDef *gamedef = nullptr; std::string current_actor; bool current_actor_is_guess = false; std::list<RollbackAction> action_todisk_buffer; std::list<RollbackAction> action_latest_buffer; std::string database_path; sqlite3 * db; sqlite3_stmt * stmt_insert; sqlite3_stmt * stmt_replace; sqlite3_stmt * stmt_select; sqlite3_stmt * stmt_select_range; sqlite3_stmt * stmt_select_withActor; sqlite3_stmt * stmt_knownActor_select; sqlite3_stmt * stmt_knownActor_insert; sqlite3_stmt * stmt_knownNode_select; sqlite3_stmt * stmt_knownNode_insert; std::vector<Entity> knownActors; std::vector<Entity> knownNodes; };