diff options
Diffstat (limited to 'source/ChunkDef.h')
-rw-r--r-- | source/ChunkDef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/ChunkDef.h b/source/ChunkDef.h index 0eebabefe..9e5f190b8 100644 --- a/source/ChunkDef.h +++ b/source/ChunkDef.h @@ -209,6 +209,12 @@ public: } + inline static void SetBlock(BLOCKTYPE * a_BlockTypes, int a_Index, BLOCKTYPE a_Type) + { + a_BlockTypes[a_Index] = a_Type; + } + + inline static BLOCKTYPE GetBlock(const BLOCKTYPE * a_BlockTypes, int a_X, int a_Y, int a_Z) { ASSERT((a_X >= 0) && (a_X < Width)); |