Files
MinecraftConsoles/Minecraft.World/MemoryLevelStorageSource.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

21 lines
760 B
C++

#pragma once
using namespace std;
#include "LevelStorageSource.h"
class MemoryLevelStorageSource : public LevelStorageSource
{
public:
MemoryLevelStorageSource();
wstring getName();
std::shared_ptr<LevelStorage> selectLevel(const wstring& levelId, bool createPlayerDir);
vector<LevelSummary *> *getLevelList();
void clearAll();
LevelData *getDataTagFor(const wstring& levelId);
bool isNewLevelIdAcceptable(const wstring& levelId);
void deleteLevel(const wstring& levelId);
void renameLevel(const wstring& levelId, const wstring& newLevelName);
bool isConvertible(const wstring& levelId);
bool requiresConversion(const wstring& levelId);
bool convertLevel(const wstring& levelId, ProgressListener *progress);
};