LeviLamina
Loading...
Searching...
No Matches
DayOneExperienceModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
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"
11
12// auto generated forward declare list
13// clang-format off
15class Skin;
16struct ImportResult;
17struct LegacyWorldInfo;
19namespace Legacy { class WorldImporter; }
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
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;
39 // NOLINTEND
40
41public:
42 // prevent constructor by default
43 DayOneExperienceModel();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~DayOneExperienceModel() /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI explicit DayOneExperienceModel(::MinecraftScreenModelContext context);
55
56 MCAPI void _fetchWorlds();
57
58 MCAPI ::std::function<void(::Legacy::ImportStatus, float, ::std::shared_ptr<::ImportResult>)>
59 _getWorldImportCallback(::std::string const& levelId, ::std::function<void()> failureCallback);
60
61 MCAPI bool _initOptionsParser();
62
63 MCAPI void _onWorldConversionCompleted(::std::shared_ptr<::ImportResult> result, ::std::string const& levelId);
64
65 MCAPI void convertLegacyWorld(uint worldIndex, ::std::function<void()> failureCallback);
66
67 MCAPI void exitDayOneExperience(int screensToPop);
68
69 MCAPI void fetchLegacySkin();
70
71 MCAPI bool finishedRetrievingWorlds() const;
72
73 MCAPI ::Skin const* getDisplaySkin() const;
74
75 MCAPI float getLegacyWorldConversionProgress() const;
76
77 MCAPI ::LoadingState getLegacyWorldConversionState() const;
78
79 MCAPI ::LegacyWorldInfo const& getWorldAt(int index) const;
80
81 MCAPI uint getWorldCount() const;
82
83 MCAPI bool hasSkin() const;
84
85 MCAPI void initSkin();
86
87 MCAPI void initWorlds();
88
89 MCFOLD bool isFetchingWorlds() const;
90
91 MCAPI bool isSkinRetrievalFinished() const;
92
93 MCFOLD bool needsRetrievalOnNetworkAvailable() const;
94
95 MCAPI void onWizardComplete();
96 // NOLINTEND
97
98public:
99 // constructor thunks
100 // NOLINTBEGIN
101 MCAPI void* $ctor(::MinecraftScreenModelContext context);
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107 MCAPI void $dtor();
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCNAPI static void** $vftableForIMinecraftScreenModel();
114
115 MCNAPI static void** $vftable();
116
117 MCNAPI static void** $vftableForIDlcBatcher();
118 // NOLINTEND
119};
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 Skin.h:5
Definition ImportResult.h:5
Definition LegacyWorldInfo.h:5
Definition MinecraftScreenModelContext.h:5