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/gui/screens/models/MinecraftScreenModel.h"
9#include "mc/client/legacy/ImportStatus.h"
10#include "mc/util/CallbackToken.h"
11
12// auto generated forward declare list
13// clang-format off
14struct ImportResult;
16struct LegacyWorldInfo;
17struct Skin;
18namespace Legacy { struct WorldImporter; }
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LegacyOptionsParser>> mOptionsParser;
26 ::ll::TypedStorage<8, 8, ::Skin const*> mLegacySkin;
27 ::ll::TypedStorage<1, 1, bool> mLegacySkinRetrievalFinished;
28 ::ll::TypedStorage<1, 1, bool> mNeedsRetrievalOnNetworkAvailable;
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Legacy::WorldImporter>> mLegacyWorldImporter;
30 ::ll::TypedStorage<8, 24, ::std::vector<::LegacyWorldInfo>> mLegacyWorldList;
31 ::ll::TypedStorage<1, 1, bool> mLegacyWorldsFetched;
32 ::ll::TypedStorage<1, 1, bool> mFetchingLegacyWorldsInProgress;
33 ::ll::TypedStorage<1, 1, bool> mFoundLegacyWorlds;
34 ::ll::TypedStorage<8, 48, ::LegacyWorldConversionManager> mLegacyWorldConversionManager;
35 ::ll::TypedStorage<4, 8, ::std::optional<uint>> mImportedWorldIndex;
36 ::ll::TypedStorage<8, 16, ::CallbackToken> mRetrieveCallbackToken;
37 ::ll::TypedStorage<8, 16, ::CallbackToken> mImportCallbackToken;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 DayOneExperienceModel();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual ~DayOneExperienceModel() /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI explicit DayOneExperienceModel(::MinecraftScreenModel::Context context);
54
55 MCAPI void _fetchWorlds();
56
57 MCAPI ::std::function<void(::Legacy::ImportStatus, float, ::std::shared_ptr<::ImportResult>)>
58 _getWorldImportCallback(::std::string const& levelId, ::std::function<void()> failureCallback);
59
60 MCAPI bool _initOptionsParser();
61
62 MCAPI void _onWorldConversionCompleted(::std::shared_ptr<::ImportResult> result, ::std::string const& levelId);
63
64 MCAPI void convertLegacyWorld(uint worldIndex, ::std::function<void()> failureCallback);
65
66 MCAPI void fetchLegacySkin();
67
68 MCAPI void onWizardComplete();
69 // NOLINTEND
70
71public:
72 // constructor thunks
73 // NOLINTBEGIN
74 MCAPI void* $ctor(::MinecraftScreenModel::Context context);
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCAPI void $dtor();
81 // NOLINTEND
82
83public:
84 // vftables
85 // NOLINTBEGIN
86 MCNAPI static void** $vftableForIMinecraftScreenModel();
87
88 MCNAPI static void** $vftable();
89
90 MCNAPI static void** $vftableForIDlcBatcher();
91 // NOLINTEND
92};
Definition DayOneExperienceModel.h:5
static MCAPI void ** $vftableForIDlcBatcher()
static MCAPI void ** $vftableForIMinecraftScreenModel()
static MCAPI void ** $vftable()
MCAPI void $dtor()
Definition MainMenuScreenModel.h:5
Definition ImportResult.h:5
Definition LegacyOptionsParser.h:5
Definition LegacyWorldInfo.h:5
Definition WorldImporter.h:7
Definition Skin.h:5