aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/SavedData.h
blob: 2fe97963438c98d7245fa748af023eac5cffc488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
using namespace std;

#include "Class.h"

class CompoundTag;

class SavedData :  public enable_shared_from_this<SavedData>
{
public:
	const wstring id;

private:
	bool dirty;

public:
	SavedData(const wstring& id);

	virtual void load(CompoundTag *tag) = 0;
	virtual void save(CompoundTag *tag) = 0;

	void setDirty();
	void setDirty(bool dirty);
	bool isDirty();
};