summaryrefslogtreecommitdiffstats
path: root/game/shared/dimension.hh
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/dimension.hh')
-rw-r--r--game/shared/dimension.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/game/shared/dimension.hh b/game/shared/dimension.hh
index eb6f896..8806115 100644
--- a/game/shared/dimension.hh
+++ b/game/shared/dimension.hh
@@ -2,12 +2,16 @@
#define SHARED_DIMENSION_HH 1
#pragma once
+#include "shared/const.hh"
#include "shared/types.hh"
class Chunk;
class Config;
class VoxelStorage;
+using dimension_entropy_map = std::array<std::uint64_t, CHUNK_AREA>;
+using dimension_height_map = std::array<voxel_pos::value_type, CHUNK_AREA>;
+
class Dimension {
public:
explicit Dimension(const char *name, float gravity);
@@ -43,7 +47,7 @@ public:
private:
std::string m_name;
- emhash8::HashMap<chunk_pos, Chunk *> m_hashmap;
+ emhash8::HashMap<chunk_pos, Chunk *> m_chunkmap;
float m_gravity;
};