the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 25 lines 379 B view raw
1#pragma once 2using namespace std; 3 4#include "Class.h" 5 6class CompoundTag; 7 8class SavedData : public enable_shared_from_this<SavedData> 9{ 10public: 11 const wstring id; 12 13private: 14 bool dirty; 15 16public: 17 SavedData(const wstring& id); 18 19 virtual void load(CompoundTag *tag) = 0; 20 virtual void save(CompoundTag *tag) = 0; 21 22 void setDirty(); 23 void setDirty(bool dirty); 24 bool isDirty(); 25};