the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4class ConsoleSaveFile;
5#include "SavedData.h"
6
7class SavedDataStorage
8{
9private:
10 LevelStorage *levelStorage;
11
12 typedef unordered_map<wstring, shared_ptr<SavedData> > cacheMapType;
13 cacheMapType cache;
14
15 vector<shared_ptr<SavedData> > savedDatas;
16
17 typedef unordered_map<wstring, short> uaiMapType;
18 uaiMapType usedAuxIds;
19
20public:
21 SavedDataStorage(LevelStorage *);
22 shared_ptr<SavedData> get(const type_info& clazz, const wstring& id);
23 void set(const wstring& id, shared_ptr<SavedData> data);
24 void save();
25
26private:
27 void save(shared_ptr<SavedData> data);
28 void loadAuxValues();
29
30public:
31 int getFreeAuxValueFor(const wstring& id);
32
33 // 4J Added
34 int getAuxValueForMap(PlayerUID xuid, int dimension, int centreXC, int centreZC, int scale);
35};