summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-09 14:25:35 +0200
committersapier <Sapier at GMX dot net>2014-06-23 00:13:41 +0200
commitb3a2ef1a911b5ee22ff6478b5a3f9a12f6e40121 (patch)
treeb97d26bac23a4659f043b7178d67f5b649def6cb /src/map.h
parent8ad83767cfccc2d1a42bdc4af087ec013d7554a0 (diff)
downloadminetest-b3a2ef1a911b5ee22ff6478b5a3f9a12f6e40121.tar.gz
minetest-b3a2ef1a911b5ee22ff6478b5a3f9a12f6e40121.tar.bz2
minetest-b3a2ef1a911b5ee22ff6478b5a3f9a12f6e40121.zip
Remove MapVoxelManipulator not really used by anyone
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h34
1 files changed, 10 insertions, 24 deletions
diff --git a/src/map.h b/src/map.h
index 46580ed3b..7f482929e 100644
--- a/src/map.h
+++ b/src/map.h
@@ -523,14 +523,15 @@ private:
Database *dbase;
};
+
#define VMANIP_BLOCK_DATA_INEXIST 1
#define VMANIP_BLOCK_CONTAINS_CIGNORE 2
-class MapVoxelManipulator : public VoxelManipulator
+class ManualMapVoxelManipulator : public VoxelManipulator
{
public:
- MapVoxelManipulator(Map *map);
- virtual ~MapVoxelManipulator();
+ ManualMapVoxelManipulator(Map *map);
+ virtual ~ManualMapVoxelManipulator();
virtual void clear()
{
@@ -538,30 +539,9 @@ public:
m_loaded_blocks.clear();
}
- virtual void emerge(VoxelArea a, s32 caller_id=-1);
-
- void blitBack(std::map<v3s16, MapBlock*> & modified_blocks);
-
-protected:
- Map *m_map;
- /*
- key = blockpos
- value = flags describing the block
- */
- std::map<v3s16, u8> m_loaded_blocks;
-};
-
-class ManualMapVoxelManipulator : public MapVoxelManipulator
-{
-public:
- ManualMapVoxelManipulator(Map *map);
- virtual ~ManualMapVoxelManipulator();
-
void setMap(Map *map)
{m_map = map;}
- virtual void emerge(VoxelArea a, s32 caller_id=-1);
-
void initialEmerge(v3s16 blockpos_min, v3s16 blockpos_max,
bool load_if_inexistent = true);
@@ -570,6 +550,12 @@ public:
protected:
bool m_create_area;
+ Map *m_map;
+ /*
+ key = blockpos
+ value = flags describing the block
+ */
+ std::map<v3s16, u8> m_loaded_blocks;
};
#endif