66 std::map<v3s16, MapBlock*> *changed_blocks);
95 std::map<v3s16, MapBlock*> &modified_blocks,
96 bool remove_metadata)
override;
138 void PrintInfo(std::ostream &out)
override;
152 std::map<v3s16, MapBlock *> *modified_blocks);
163 void reportMetrics(u64 save_time_us, u32 saved_blocks, u32 all_blocks)
override;
Definition rollback_interface.h:97
Definition mapsector.h:25
Definition map_settings_manager.h:30
Definition metricsbackend.h:39
Definition serverenvironment.h:219
Definition servermap.h:44
void updateVManip(v3s16 pos)
Definition servermap.cpp:453
MapSettingsManager settings_mgr
Definition servermap.h:159
MapBlock * emergeBlock(v3s16 p, bool create_blank=true) override
Definition servermap.cpp:390
u64 getSeed()
Definition servermap.cpp:182
void step()
Definition servermap.cpp:770
bool blockpos_over_mapgen_limit(v3s16 p)
Definition servermap.cpp:187
bool repairBlockLight(v3s16 blockpos, std::map< v3s16, MapBlock * > *modified_blocks)
Definition servermap.cpp:782
void finishBlockMake(BlockMakeData *data, std::map< v3s16, MapBlock * > *changed_blocks)
Definition servermap.cpp:265
~ServerMap()
Definition servermap.cpp:142
void endSave() override
Definition servermap.cpp:609
MapSector * createSector(v2s16 p)
Definition servermap.cpp:327
bool saveBlock(MapBlock *block) override
Definition servermap.cpp:615
std::set< v3s16 > m_chunks_in_progress
Definition servermap.h:176
MetricGaugePtr m_loaded_blocks_gauge
Definition servermap.h:197
static void deSerializeBlock(MapBlock *block, std::istream &is)
Definition servermap.cpp:646
static MapDatabase * createDatabase(const std::string &name, const std::string &savedir, Settings &conf)
Definition servermap.cpp:575
std::string m_savedir
Definition servermap.h:171
bool m_map_saving_enabled
Definition servermap.h:172
void listAllLoadedBlocks(std::vector< v3s16 > &dst)
Definition servermap.cpp:560
void PrintInfo(std::ostream &out) override
Definition servermap.cpp:777
std::vector< std::unique_ptr< MapBlock > > m_detached_blocks
Definition servermap.h:179
UniqueQueue< v3s16 > m_transforming_liquid
Definition servermap.h:182
void deleteDetachedBlocks()
Definition servermap.cpp:760
MetricCounterPtr m_save_count_counter
Definition servermap.h:199
void transformLiquids(std::map< v3s16, MapBlock * > &modified_blocks, ServerEnvironment *env)
Definition servermap.cpp:860
MapDatabaseAccessor m_db
Definition servermap.h:194
EmergeManager * m_emerge
Definition servermap.h:169
bool isBlockInQueue(v3s16 pos)
Definition servermap.cpp:423
void reportMetrics(u64 save_time_us, u32 saved_blocks, u32 all_blocks) override
Definition servermap.cpp:473
int m_map_compression_level
Definition servermap.h:174
bool m_map_metadata_changed
Definition servermap.h:192
bool initBlockMake(v3s16 blockpos, BlockMakeData *data)
Definition servermap.cpp:200
f32 m_transforming_liquid_loop_count_multiplier
Definition servermap.h:183
MapBlock * createBlock(v3s16 p)
Definition servermap.cpp:355
void save(ModifiedState save_level) override
Definition servermap.cpp:480
ServerMap(const std::string &savedir, IGameDef *gamedef, EmergeManager *emerge, MetricsBackend *mb)
Definition servermap.cpp:55
MetricCounterPtr m_save_time_counter
Definition servermap.h:198
MapBlock * getBlockOrEmerge(v3s16 p3d, bool generate)
Definition servermap.cpp:414
u32 m_unprocessed_count
Definition servermap.h:184
void beginSave() override
Definition servermap.cpp:603
void transforming_liquid_add(v3s16 p)
Definition servermap.cpp:855
MapgenParams * getMapgenParams()
Definition servermap.cpp:175
void listAllLoadableBlocks(std::vector< v3s16 > &dst)
Definition servermap.cpp:552
void addNodeAndUpdate(v3s16 p, MapNode n, std::map< v3s16, MapBlock * > &modified_blocks, bool remove_metadata) override
Definition servermap.cpp:428
bool m_queue_size_timer_started
Definition servermap.h:186
bool isSavingEnabled()
Definition servermap.h:140
MapBlock * loadBlock(v3s16 p)
Definition servermap.cpp:726
bool deleteBlock(v3s16 blockpos) override
Definition servermap.cpp:740
u64 m_inc_trending_up_start_time
Definition servermap.h:185
Definition settings.h:109
Definition container.h:26
core::vector2d< s16 > v2s16
Definition irr_v2d.h:12
core::vector3d< s16 > v3s16
Definition irr_v3d.h:13
std::shared_ptr< MetricCounter > MetricCounterPtr
Definition metricsbackend.h:22
std::shared_ptr< MetricGauge > MetricGaugePtr
Definition metricsbackend.h:36
ModifiedState
Definition modifiedstate.h:10
Definition servermap.h:24
void loadBlock(v3s16 blockpos, std::string &ret)
Load a block, taking dbase_ro into account.
Definition servermap.cpp:43
MapDatabase * dbase
Main database.
Definition servermap.h:28
MapDatabase * dbase_ro
Fallback database for read operations.
Definition servermap.h:30
std::mutex mutex
Lock, to be taken for any operation.
Definition servermap.h:26
static std::string p(std::string path)
Definition test_filesys.cpp:53