aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
Commit message (Expand)AuthorAge
...
* Send only changed node metadata to clients instead of whole mapblock (#5268)SmallJoker2018-12-04
* Move client-specific files to 'src/client' (#7902)Quentin Bazin2018-11-28
* Add Lua methods 'set_rotation()' and 'get_rotation()' (#7395)CoderForTheBetter2018-11-28
* Content store: Add setting to filter non-free packages (#7766)rubenwardy2018-11-08
* clear_craft: Return false if recipe not found, don't throw error (#7804)Paramat2018-10-24
* Add core.remove_detached_inventory (#7684)SmallJoker2018-10-10
* markAliasDeprecated: Fix MSVC buildSmallJoker2018-09-11
* Particles: Make collision with objects optional (#7682)Paramat2018-09-08
* Raycast: export exact pointing location (#6304)Dániel Juhász2018-08-16
* Replace auth.txt with SQLite auth database (#7279)Ben Deutsch2018-08-05
* LuaVoxelManip: Throw warning or error instead of silently doing nothing (#7567)HybridDog2018-08-02
* Add protocol_version and supported package types to ContentDB urlsrubenwardy2018-07-29
* Lua templating reading (part 4): s16, v2s16, v2f (#7512)Loïc Blot2018-07-08
* Log deprecated Lua function calls (#7491)SmallJoker2018-07-01
* Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot2018-06-30
* Fix memory leaks in mod storage (#7500)red-0012018-06-30
* Fix world deletion (#7494)Vitaliy2018-06-30
* Fix a memleak before assertion in l_get_mod_storageLoic Blot2018-06-30
* Fix mod channels crash (#7481)red-0012018-06-27
* Rename CSM flavours to restrictionsSmallJoker2018-06-26
* Update to new ContentDB APIrubenwardy2018-06-18
* Fix narrow/utf8 difference in incoming/outcoming messagesnumber Zero2018-06-10
* Modernize lua read (part 1): C++ templating insurance (#7394)Loïc Blot2018-06-04
* Fix isNan on setYaw Lua call (#7380)Loïc Blot2018-05-31
* Fix missing ignore textures (#7326)you2018-05-20
* Add screenshots to online content browserrubenwardy2018-05-20
* Add updating to online content browserrubenwardy2018-05-16
* Allow damage for attached objects, add attach/detach callbacks (#6786)SmallJoker2018-04-30
* MetaDataRef: Add contains() and get() (#7214)rubenwardy2018-04-30
* Add online content repositoryrubenwardy2018-04-19
* Biome API / dungeons: Add biome-defined dungeon nodesParamat2018-04-07
* Add player:get_meta(), deprecate player attributes (#7202)rubenwardy2018-04-06
* Biome API / cavegen: Add definable cave liquid for a biome (#7192)Paramat2018-04-05
* Fix last clang-tidy reported problems for performance-type-promotion-in-math-fnLoic Blot2018-04-03
* Fix many issues reported by clang-tidy (#7189)Loïc Blot2018-04-02
* ObjectRef: Add add_velocity() (#3208)you2018-03-31
* Load dependencies and description from mod.confAndrew Ward2018-03-28
* Add reasons to on_dieplayer and on_hpchangeAndrew Ward2018-03-28
* Add formspec theming using prepended stringsAndrew Ward2018-03-28
* Mapgen: Remove unused mgv7 code and some unused biometypesParamat2018-03-26
* Cleanup sound manager class (#7158)Loïc Blot2018-03-24
* Biome API: Add 'get_biome_name(biome_id)' APIparamat2018-03-11
* Spawn level: Add 'get_spawn_level(x, z)' APIparamat2018-03-10
* Biomes: Add 'min_pos'/'max_pos' xyz biome limitsparamat2018-03-09
* Cleanup & bugfixLoic Blot2018-03-08
* Cleanup: drop Server::hudGetHotbarSelectedImage()Loic Blot2018-03-08
* Cleanup: drop Server::hudGetHotbarImage()Loic Blot2018-03-08
* Cleanup: drop Server::hudGetHotbarItemcount()Loic Blot2018-03-08
* Gennotify: Add 'minetest.get_decoration_id' APIparamat2018-03-03
* Place schematic (on vmanip): Enable use of 'place center' flagsparamat2018-02-27
class="hl opt">-= p.Z * MAP_BLOCKSIZE * MAP_BLOCKSIZE; p.Y += p16 / MAP_BLOCKSIZE; p16 -= p.Y * MAP_BLOCKSIZE; p.X += p16; NodeTimer t; t.deSerialize(is); if(t.timeout <= 0) { infostream<<"WARNING: NodeTimerList::deSerialize(): " <<"invalid data at position" <<"("<<p.X<<","<<p.Y<<","<<p.Z<<"): Ignoring." <<std::endl; continue; } if(m_data.find(p) != m_data.end()) { infostream<<"WARNING: NodeTimerList::deSerialize(): " <<"already set data at position" <<"("<<p.X<<","<<p.Y<<","<<p.Z<<"): Ignoring." <<std::endl; continue; } m_data.insert(std::make_pair(p, t)); } } std::map<v3s16, NodeTimer> NodeTimerList::step(float dtime) { std::map<v3s16, NodeTimer> elapsed_timers; // Increment timers for(std::map<v3s16, NodeTimer>::iterator i = m_data.begin(); i != m_data.end(); i++){ v3s16 p = i->first; NodeTimer t = i->second; t.elapsed += dtime; if(t.elapsed >= t.timeout) elapsed_timers.insert(std::make_pair(p, t)); else i->second = t; } // Delete elapsed timers for(std::map<v3s16, NodeTimer>::const_iterator i = elapsed_timers.begin(); i != elapsed_timers.end(); i++){ v3s16 p = i->first; m_data.erase(p); } return elapsed_timers; }