This commit is contained in:
2024-08-27 01:48:58 +02:00
parent 68abd9eefe
commit 346bc96ca8
44 changed files with 2593 additions and 546 deletions

26
gloom/src/Block.h Normal file
View File

@@ -0,0 +1,26 @@
//
// Created by Bram on 26/08/2024.
//
#ifndef GLOOM_BLOCK_H
#define GLOOM_BLOCK_H
//This will hold all the data of a block, but not the mesh since this is held by the chunk
#include "BlockType.h"
class Block {
public:
Block(BlockType type) : m_type(type) {}
BlockType getType() const { return m_type; }
private:
BlockType m_type;
};
#endif //GLOOM_BLOCK_H