Files
MinecraftConsoles/Minecraft.World/MemoryLevelStorage.h
void_17 7074f35e4b shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
2026-03-02 15:58:20 +07:00

31 lines
1.0 KiB
C++

#pragma once
using namespace std;
#include "LevelStorage.h"
#include "PlayerIO.h"
#include "stdafx.h"
#include "net.minecraft.world.entity.player.h"
#include "net.minecraft.world.level.h"
#include "net.minecraft.world.level.chunk.storage.h"
#include "net.minecraft.world.level.dimension.h"
#include "com.mojang.nbt.h"
#include "ConsoleSaveFile.h"
class MemoryLevelStorage : public LevelStorage, public PlayerIO
{
public:
MemoryLevelStorage();
virtual LevelData *prepareLevel();
virtual void checkSession();
virtual ChunkStorage *createChunkStorage(Dimension *dimension);
virtual void saveLevelData(LevelData *levelData, vector<std::shared_ptr<Player> > *players);
virtual void saveLevelData(LevelData *levelData);
virtual PlayerIO *getPlayerIO();
virtual void closeAll();
virtual void save(std::shared_ptr<Player> player);
virtual bool load(std::shared_ptr<Player> player);
virtual CompoundTag *loadPlayerDataTag(const wstring& playerName);
virtual ConsoleSavePath getDataFile(const wstring& id);
};