3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/screens/models/LegacyWorldConversionManager.h"
7#include "mc/client/legacy/ImportStatus.h"
8#include "mc/deps/core/file/PathBuffer.h"
9#include "mc/util/CallbackToken.h"
10#include "mc/world/actor/player/LoadingState.h"
27 ::ll::TypedStorage<8, 8, ::IMinecraftGame&> mMinecraftGame;
28 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClient;
29 ::ll::TypedStorage<8, 8, ::MainMenuScreenModel&> mModel;
30 ::ll::TypedStorage<8, 24, ::std::vector<::LegacyWorldInfo>> mLegacyWorldList;
31 ::ll::TypedStorage<8, 24, ::std::vector<::LegacyWorldInfo>> mRetailToPreviewWorldList;
32 ::ll::TypedStorage<1, 1, bool> mFetchingLegacyWorldsInProgress;
33 ::ll::TypedStorage<1, 1, bool> mLegacyWorldsFetched;
34 ::ll::TypedStorage<1, 1, bool> mFoundLegacyWorlds;
35 ::ll::TypedStorage<8, 48, ::LegacyWorldConversionManager> mLegacyWorldConversionManager;
36 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Legacy::WorldImporter>> mLegacyWorldImporter;
37 ::ll::TypedStorage<8, 16, ::CallbackToken> mRetrieveCallbackToken;
38 ::ll::TypedStorage<8, 16, ::CallbackToken> mImportCallbackToken;
43 LegacyWorldConverter& operator=(LegacyWorldConverter
const&);
44 LegacyWorldConverter(LegacyWorldConverter
const&);
45 LegacyWorldConverter();
51 LegacyWorldConverter(::IMinecraftGame& minecraftGame, ::IClientInstance& client, ::MainMenuScreenModel& model);
53 MCAPI
void _processLegacyWorld(::std::shared_ptr<::Legacy::WorldProcessRequest> processRequest);
55 MCAPI
void cancelImportCallbackToken();
57 MCAPI
void convertLegacyWorld(
58 ::LegacyWorldInfo worldInfo,
59 ::std::string
const& newWorldDir,
60 ::std::function<
void(::Legacy::ImportStatus,
float, ::std::shared_ptr<::ImportResult>)> callback
63 MCAPI ::Core::PathBuffer<::std::string> createUniquePathForWorld()
const;
66 fetchLegacyWorlds(::std::function<
void()> noWorldsFoundCallback, ::std::function<
void()> onFoundNewDataCallback);
68 MCFOLD
bool getFetchingLegacyWorldsInProgress()
const;
70 MCAPI ::LegacyWorldInfo* getLegacyWorldAtIndex(
int index);
72 MCAPI
float getLegacyWorldConversionProgress()
const;
74 MCAPI ::LoadingState getLegacyWorldConversionState()
const;
76 MCAPI
int getLegacyWorldCount()
const;
78 MCFOLD
bool getLegacyWorldsFetched()
const;
80 MCAPI ::LegacyWorldInfo* getRetailToPreviewWorldAtIndex(
int index);
82 MCAPI
int getRetailToPreviewWorldCount()
const;
84 MCAPI
void handleLegacyWorldConversionComplete(::ImportResult
const& result);
86 MCAPI
void initLegacyWorldImporter();
88 MCAPI
void setLegacyWorldConversionProgress(
float progress);
90 MCFOLD
bool supportsLegacyWorlds()
const;
92 MCAPI
void tryAcquireMissingDlc(::std::string
const& levelId, ::std::function<
void(
bool)> downloadCompleteCallback);
94 MCAPI ~LegacyWorldConverter();
100 MCAPI
void* $ctor(::IMinecraftGame& minecraftGame, ::IClientInstance& client, ::MainMenuScreenModel& model);
Definition IClientInstance.h:5
Definition IMinecraftGame.h:5
Definition LegacyWorldConverter.h:5
Definition WorldImporter.h:7
Definition WorldProcessRequest.h:7
Definition MainMenuScreenModel.h:5
Definition ImportResult.h:5
Definition LegacyWorldInfo.h:5