mirror of
https://github.com/brammie15/VoxelRenderer.git
synced 2025-12-18 10:39:20 +01:00
Add MC
This commit is contained in:
26
gloom/src/Block.h
Normal file
26
gloom/src/Block.h
Normal 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
|
||||
Reference in New Issue
Block a user