Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
645 B · 42 lines
C
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243#pragma once#include "ZonedChunkStorage.h"#include "NbtSlotFile.h"#include "ZoneIo.h"
class ZoneFile{public: static const int FILE_HEADER_SIZE = 1024 * 4;
private: static const int MAGIC_NUMBER = 0x13737000;
static const int slotsLength;
shortArray slots; short slotCount;
public: __int64 lastUse;
private: HANDLE channel;
public: __int64 key; File file;
NbtSlotFile *entityFile;
ZoneFile(__int64 key, File file, File entityFile); ~ZoneFile();
void readHeader();
void writeHeader();
public: void close(); ZoneIo *getZoneIo(int slot); bool containsSlot(int slot);};