diff options
Diffstat (limited to 'src/engine/M_block.h')
| -rw-r--r-- | src/engine/M_block.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/engine/M_block.h b/src/engine/M_block.h new file mode 100644 index 0000000..852830c --- /dev/null +++ b/src/engine/M_block.h @@ -0,0 +1,26 @@ +#pragma once + +//#include "M_types.ḥ" +#include "M_object.h" + +typedef struct { + unsigned short type; +} M_Block; + +typedef struct { + M_Object obj; +} M_BlockType; + +typedef struct { + M_BlockType *blocks; + unsigned short block_amount; + unsigned short size; +} M_BlockAtlas; + +void M_createBlock(M_Block *block, unsigned short type); + +unsigned short M_createBlockType(M_Object obj, M_BlockAtlas *atl); + +M_BlockAtlas M_createBlockAtlas(); + +void M_killBlockAtlas(M_BlockAtlas *atl); |
