aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/item_entity.lua
diff options
context:
space:
mode:
authorJozef Behran <jozuejozef@gmail.com>2020-05-06 21:35:18 +0200
committerGitHub <noreply@github.com>2020-05-06 21:35:18 +0200
commit4f9ccd89b347dad3db5ce63d3405a8d60c163af5 (patch)
tree1fc5601254e8a5d88319235acbb0430796603823 /builtin/game/item_entity.lua
parent664800b2adda44039a85c3566b4ed958abff8b95 (diff)
downloadminetest-4f9ccd89b347dad3db5ce63d3405a8d60c163af5.tar.gz
minetest-4f9ccd89b347dad3db5ce63d3405a8d60c163af5.tar.bz2
minetest-4f9ccd89b347dad3db5ce63d3405a8d60c163af5.zip
Get rid of non-ascii characters in the debug display code (#8821)
Diffstat (limited to 'builtin/game/item_entity.lua')
0 files changed, 0 insertions, 0 deletions
once #include "irrlichttypes.h" #include "irr_v2d.h" #include "mapblock.h" #include <ostream> #include <map> #include <vector> class Map; class IGameDef; /* This is an Y-wise stack of MapBlocks. */ #define MAPSECTOR_SERVER 0 #define MAPSECTOR_CLIENT 1 class MapSector { public: MapSector(Map *parent, v2s16 pos, IGameDef *gamedef); virtual ~MapSector(); void deleteBlocks(); v2s16 getPos() { return m_pos; } MapBlock * getBlockNoCreateNoEx(s16 y); MapBlock * createBlankBlockNoInsert(s16 y); MapBlock * createBlankBlock(s16 y); void insertBlock(MapBlock *block); void deleteBlock(MapBlock *block); void getBlocks(MapBlockVect &dest); bool empty() const { return m_blocks.empty(); } protected: // The pile of MapBlocks std::unordered_map<s16, MapBlock*> m_blocks; Map *m_parent; // Position on parent (in MapBlock widths) v2s16 m_pos; IGameDef *m_gamedef; // Last-used block is cached here for quicker access. // Be sure to set this to nullptr when the cached block is deleted MapBlock *m_block_cache = nullptr; s16 m_block_cache_y; /* Private methods */ MapBlock *getBlockBuffered(s16 y); };