mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add multi-Emerge thread support
This commit is contained in:
parent
76217939e0
commit
5ec5b1cbd6
8 changed files with 160 additions and 64 deletions
13
src/map.h
13
src/map.h
|
@ -517,6 +517,9 @@ private:
|
|||
sqlite3_stmt *m_database_list;
|
||||
};
|
||||
|
||||
#define VMANIP_BLOCK_DATA_INEXIST 1
|
||||
#define VMANIP_BLOCK_CONTAINS_CIGNORE 2
|
||||
|
||||
class MapVoxelManipulator : public VoxelManipulator
|
||||
{
|
||||
public:
|
||||
|
@ -532,14 +535,14 @@ public:
|
|||
virtual void emerge(VoxelArea a, s32 caller_id=-1);
|
||||
|
||||
void blitBack(core::map<v3s16, MapBlock*> & modified_blocks);
|
||||
|
||||
protected:
|
||||
Map *m_map;
|
||||
|
||||
/*
|
||||
key = blockpos
|
||||
value = block existed when loaded
|
||||
value = flags describing the block
|
||||
*/
|
||||
core::map<v3s16, bool> m_loaded_blocks;
|
||||
core::map<v3s16, u8> m_loaded_blocks;
|
||||
protected:
|
||||
Map *m_map;
|
||||
};
|
||||
|
||||
class ManualMapVoxelManipulator : public MapVoxelManipulator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue