mirror of
https://github.com/brammie15/VoxelRenderer.git
synced 2025-12-16 18:01:49 +01:00
27 lines
381 B
C++
27 lines
381 B
C++
//
|
|
// 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
|