mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-15 18:19:25 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -1,35 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
class ConsoleSaveFile;
|
||||
#include "SavedData.h"
|
||||
|
||||
class SavedDataStorage
|
||||
{
|
||||
class SavedDataStorage {
|
||||
private:
|
||||
LevelStorage *levelStorage;
|
||||
LevelStorage* levelStorage;
|
||||
|
||||
typedef std::unordered_map<std::wstring, std::shared_ptr<SavedData> > cacheMapType;
|
||||
typedef std::unordered_map<std::wstring, std::shared_ptr<SavedData> >
|
||||
cacheMapType;
|
||||
cacheMapType cache;
|
||||
|
||||
std::vector<std::shared_ptr<SavedData> > savedDatas;
|
||||
|
||||
typedef std::unordered_map<std::wstring, short> uaiMapType;
|
||||
typedef std::unordered_map<std::wstring, short> uaiMapType;
|
||||
uaiMapType usedAuxIds;
|
||||
|
||||
public:
|
||||
SavedDataStorage(LevelStorage *);
|
||||
std::shared_ptr<SavedData> get(const std::type_info& clazz, const std::wstring& id);
|
||||
SavedDataStorage(LevelStorage*);
|
||||
std::shared_ptr<SavedData> get(const std::type_info& clazz,
|
||||
const std::wstring& id);
|
||||
void set(const std::wstring& id, std::shared_ptr<SavedData> data);
|
||||
void save();
|
||||
|
||||
private:
|
||||
void save(std::shared_ptr<SavedData> data);
|
||||
void save(std::shared_ptr<SavedData> data);
|
||||
void loadAuxValues();
|
||||
|
||||
public:
|
||||
int getFreeAuxValueFor(const std::wstring& id);
|
||||
int getFreeAuxValueFor(const std::wstring& id);
|
||||
|
||||
// 4J Added
|
||||
int getAuxValueForMap(PlayerUID xuid, int dimension, int centreXC, int centreZC, int scale);
|
||||
// 4J Added
|
||||
int getAuxValueForMap(PlayerUID xuid, int dimension, int centreXC,
|
||||
int centreZC, int scale);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user