chore: format Minecraft.World

This commit is contained in:
Tropical
2026-03-13 17:06:56 -05:00
parent bd6284025d
commit 33d0737d1d
1511 changed files with 108661 additions and 115521 deletions

View File

@@ -1,6 +1,5 @@
#pragma once
#include "../../Platform/stdafx.h"
class LevelSummary;
@@ -9,14 +8,16 @@ class LevelData;
class LevelStorage;
class ConsoleSaveFile;
class LevelStorageSource
{
class LevelStorageSource {
public:
virtual std::wstring getName() = 0;
virtual std::shared_ptr<LevelStorage> selectLevel(ConsoleSaveFile *saveFile, const std::wstring& levelId, bool createPlayerDir) = 0;
virtual std::vector<LevelSummary *> *getLevelList() = 0;
virtual std::wstring getName() = 0;
virtual std::shared_ptr<LevelStorage> selectLevel(
ConsoleSaveFile* saveFile, const std::wstring& levelId,
bool createPlayerDir) = 0;
virtual std::vector<LevelSummary*>* getLevelList() = 0;
virtual void clearAll() = 0;
virtual LevelData *getDataTagFor(ConsoleSaveFile *saveFile, const std::wstring& levelId) = 0;
virtual LevelData* getDataTagFor(ConsoleSaveFile* saveFile,
const std::wstring& levelId) = 0;
/**
* Tests if a levelId can be used to store a level. For example, a levelId
@@ -24,14 +25,19 @@ public:
* handle.
* <p>
* Also, a new levelId may not overwrite an existing one.
*
*
* @param levelId
* @return
*/
virtual bool isNewLevelIdAcceptable(const std::wstring& levelId) = 0;
virtual void deleteLevel(const std::wstring& levelId) = 0;
virtual void renameLevel(const std::wstring& levelId, const std::wstring& newLevelName) = 0;
virtual bool isConvertible(ConsoleSaveFile *saveFile, const std::wstring& levelId) = 0;
virtual bool requiresConversion(ConsoleSaveFile *saveFile, const std::wstring& levelId) = 0;
virtual bool convertLevel(ConsoleSaveFile *saveFile, const std::wstring &levelId, ProgressListener *progress) = 0;
virtual void renameLevel(const std::wstring& levelId,
const std::wstring& newLevelName) = 0;
virtual bool isConvertible(ConsoleSaveFile* saveFile,
const std::wstring& levelId) = 0;
virtual bool requiresConversion(ConsoleSaveFile* saveFile,
const std::wstring& levelId) = 0;
virtual bool convertLevel(ConsoleSaveFile* saveFile,
const std::wstring& levelId,
ProgressListener* progress) = 0;
};