Skip to content

Commit

Permalink
this probably
Browse files Browse the repository at this point in the history
  • Loading branch information
Kade-github committed Apr 19, 2024
1 parent ffa654c commit 047e4d0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/Game/Data/World.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@

namespace Data
{
struct DataTag
{
char name[32];
char value[64];

MSGPACK_DEFINE_ARRAY(name, value);
};

struct BlockData
{
uint8_t x = 0, y = 0, z = 0;
uint8_t type = 0;

std::vector<DataTag> tags;

MSGPACK_DEFINE_ARRAY(x, y, z, type, tags);

};

struct DataChunk
{
std::vector<BlockData> blocks;

MSGPACK_DEFINE_ARRAY(blocks);
};

struct Chunk
{
Expand Down

0 comments on commit 047e4d0

Please sign in to comment.