1
0
Fork 0
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:
kwolekr 2013-02-17 01:47:49 -05:00
parent 76217939e0
commit 5ec5b1cbd6
8 changed files with 160 additions and 64 deletions

View file

@ -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