3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/screens/models/LegacyWorldConversionManager.h"
7#include "mc/client/gui/screens/models/MainMenuScreenModel.h"
8#include "mc/client/legacy/ImportStatus.h"
9#include "mc/util/CallbackToken.h"
10#include "mc/world/actor/player/LoadingState.h"
26 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LegacyOptionsParser>> mOptionsParser;
27 ::ll::TypedStorage<8, 8, ::Skin const*> mLegacySkin;
28 ::ll::TypedStorage<1, 1, bool> mLegacySkinRetrievalFinished;
29 ::ll::TypedStorage<1, 1, bool> mNeedsRetrievalOnNetworkAvailable;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Legacy::WorldImporter>> mLegacyWorldImporter;
31 ::ll::TypedStorage<8, 24, ::std::vector<::LegacyWorldInfo>> mLegacyWorldList;
32 ::ll::TypedStorage<1, 1, bool> mLegacyWorldsFetched;
33 ::ll::TypedStorage<1, 1, bool> mFetchingLegacyWorldsInProgress;
34 ::ll::TypedStorage<1, 1, bool> mFoundLegacyWorlds;
35 ::ll::TypedStorage<8, 48, ::LegacyWorldConversionManager> mLegacyWorldConversionManager;
36 ::ll::TypedStorage<4, 8, ::std::optional<uint>> mImportedWorldIndex;
37 ::ll::TypedStorage<8, 16, ::CallbackToken> mRetrieveCallbackToken;
38 ::ll::TypedStorage<8, 16, ::CallbackToken> mImportCallbackToken;
43 DayOneExperienceModel();
48 virtual ~DayOneExperienceModel() ;
54 MCAPI
explicit DayOneExperienceModel(::MinecraftScreenModelContext context);
56 MCAPI
void _fetchWorlds();
58 MCAPI ::std::function<void(::Legacy::ImportStatus,
float, ::std::shared_ptr<::ImportResult>)>
59 _getWorldImportCallback(::std::string
const& levelId, ::std::function<
void()> failureCallback);
61 MCAPI
bool _initOptionsParser();
63 MCAPI
void _onWorldConversionCompleted(::std::shared_ptr<::ImportResult> result, ::std::string
const& levelId);
65 MCAPI
void convertLegacyWorld(uint worldIndex, ::std::function<
void()> failureCallback);
67 MCAPI
void exitDayOneExperience(
int screensToPop);
69 MCAPI
void fetchLegacySkin();
71 MCAPI
bool finishedRetrievingWorlds()
const;
73 MCAPI ::Skin
const* getDisplaySkin()
const;
75 MCAPI
float getLegacyWorldConversionProgress()
const;
77 MCAPI ::LoadingState getLegacyWorldConversionState()
const;
79 MCAPI ::LegacyWorldInfo
const& getWorldAt(
int index)
const;
81 MCAPI uint getWorldCount()
const;
83 MCAPI
bool hasSkin()
const;
85 MCAPI
void initSkin();
87 MCAPI
void initWorlds();
89 MCFOLD
bool isFetchingWorlds()
const;
91 MCAPI
bool isSkinRetrievalFinished()
const;
93 MCFOLD
bool needsRetrievalOnNetworkAvailable()
const;
95 MCAPI
void onWizardComplete();
101 MCAPI
void* $ctor(::MinecraftScreenModelContext context);
Definition DayOneExperienceModel.h:5
static MCAPI void ** $vftableForIDlcBatcher()
static MCAPI void ** $vftableForIMinecraftScreenModel()
static MCAPI void ** $vftable()
Definition LegacyOptionsParser.h:5
Definition WorldImporter.h:7
Definition MainMenuScreenModel.h:5
Definition ImportResult.h:5
Definition LegacyWorldInfo.h:5
Definition MinecraftScreenModelContext.h:5