the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2#include "ZonedChunkStorage.h"
3#include "NbtSlotFile.h"
4#include "ZoneIo.h"
5
6class ZoneFile
7{
8public:
9 static const int FILE_HEADER_SIZE = 1024 * 4;
10
11private:
12 static const int MAGIC_NUMBER = 0x13737000;
13
14 static const int slotsLength;
15
16 shortArray slots;
17 short slotCount;
18
19public:
20 __int64 lastUse;
21
22private:
23 HANDLE channel;
24
25public:
26 __int64 key;
27 File file;
28
29 NbtSlotFile *entityFile;
30
31 ZoneFile(__int64 key, File file, File entityFile);
32 ~ZoneFile();
33
34 void readHeader();
35
36 void writeHeader();
37
38public:
39 void close();
40 ZoneIo *getZoneIo(int slot);
41 bool containsSlot(int slot);
42};