mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 05:13:37 +00:00
25 lines
436 B
C++
25 lines
436 B
C++
#pragma once
|
|
|
|
#include "../../Util/Class.h"
|
|
|
|
class CompoundTag;
|
|
|
|
class SavedData : public std::enable_shared_from_this<SavedData> {
|
|
public:
|
|
const std::wstring id;
|
|
|
|
private:
|
|
bool dirty;
|
|
|
|
public:
|
|
SavedData(const std::wstring& id);
|
|
virtual ~SavedData() {}
|
|
|
|
virtual void load(CompoundTag* tag) = 0;
|
|
virtual void save(CompoundTag* tag) = 0;
|
|
|
|
void setDirty();
|
|
void setDirty(bool dirty);
|
|
bool isDirty();
|
|
};
|