Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
CharacterSelectorModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/DirtyFlag.h"
7#include "mc/client/gui/screens/managers/ProfileEntryPromptManager.h"
8#include "mc/client/gui/screens/models/CharacterSelectorVisibility.h"
9#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/util/Random.h"
12
13// auto generated forward declare list
14// clang-format off
18class UIPropertyBag;
20struct LinksToStyle;
21// clang-format on
22
24public:
25 // CharacterSelectorModel inner types declare
26 // clang-format off
28 // clang-format on
29
30 // CharacterSelectorModel inner types define
31 enum class AppearanceCreationType : int {
32 Persona = 0,
33 ClassicSkin = 1,
34 Count = 2,
35 };
36
38 public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<4, 4, int> mCurrentPage;
42 ::ll::TypedStorage<4, 4, int> mSubPage;
43 // NOLINTEND
44
45 public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~CharacterSelectorFTUEModel() = default;
49 // NOLINTEND
50
51 public:
52 // member functions
53 // NOLINTBEGIN
54 MCNAPI bool nextPage(::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController> screenController);
55
56 MCNAPI void openCurrentPage(::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController> screenController) const;
57
58 MCNAPI bool prevPage(::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController> screenController);
59 // NOLINTEND
60 };
61
62public:
63 // member variables
64 // NOLINTBEGIN
65 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController>> mScreenController;
66 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::PersonaScreenModel>> mPersonaScreenModel;
67 ::ll::TypedStorage<8, 8, ::LinksToStyle const&> mClassicSkinLinksToStyle;
68 ::ll::TypedStorage<8, 8, ::LinksToStyle const&> mPersonaLinksToStyle;
69 ::ll::TypedStorage<8, 40, ::ProfileEntryPromptManager> mEntryPromptManager;
70 ::ll::TypedStorage<4, 8, ::glm::ivec2> mGridParams;
71 ::ll::TypedStorage<4, 4, uint> mPreviewIndex;
72 ::ll::TypedStorage<8, 2560, ::Random> mRandom;
73 ::ll::TypedStorage<4, 4, ::CharacterSelectorModel::AppearanceCreationType> mAppearanceCreationType;
74 ::ll::TypedStorage<4, 4, ::CharacterSelectorVisibility> mCastModalVisibility;
75 ::ll::TypedStorage<8, 16, ::CharacterSelectorModel::CharacterSelectorFTUEModel> mFTUEData;
76 ::ll::TypedStorage<8, 24, ::std::vector<::CharacterSelectorData>> mSectionContent;
77 ::ll::TypedStorage<1, 1, bool> mHasSeenLatestDefaultCharacterList;
78 ::ll::TypedStorage<1, 1, bool> mSelectedCharacterWasNotReady;
79 ::ll::TypedStorage<1, 1, bool> mFirstLoading;
80 // NOLINTEND
81
82public:
83 // prevent constructor by default
84 CharacterSelectorModel& operator=(CharacterSelectorModel const&);
85 CharacterSelectorModel(CharacterSelectorModel const&);
86 CharacterSelectorModel();
87
88public:
89 // virtual functions
90 // NOLINTBEGIN
91 virtual ~CharacterSelectorModel() /*override*/ = default;
92 // NOLINTEND
93
94public:
95 // member functions
96 // NOLINTBEGIN
98 ::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController> screenController,
99 ::Bedrock::NotNullNonOwnerPtr<::PersonaScreenModel> screenModel,
100 ::LinksToStyle const& classicSkinLinksToStyle,
101 ::LinksToStyle const& personaLinksToStyle
102 );
103
105
107
109
111
113
115
117
119
121
122 MCNAPI ::std::string getAppearanceName() const;
123
124 MCNAPI ::std::string getPersonaConfirmText() const;
125
126 MCNAPI ::std::string getPreviewImageFilePath(int index) const;
127
129
130 MCNAPI void openCharacterSelectModal(::CharacterSelectorVisibility previewMode);
131
133
134 MCNAPI void tick(::ui::DirtyFlag& dirtyFlags);
135 // NOLINTEND
136
137public:
138 // static functions
139 // NOLINTBEGIN
141 // NOLINTEND
142
143public:
144 // constructor thunks
145 // NOLINTBEGIN
146 MCNAPI void* $ctor(
147 ::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController> screenController,
148 ::Bedrock::NotNullNonOwnerPtr<::PersonaScreenModel> screenModel,
149 ::LinksToStyle const& classicSkinLinksToStyle,
150 ::LinksToStyle const& personaLinksToStyle
151 );
152 // NOLINTEND
153};
Definition EnableNonOwnerReferences.h:7
Definition CharacterSelectorModel.h:15
MCAPI bool nextPage(::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController > screenController)
MCAPI bool prevPage(::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController > screenController)
MCAPI void openCurrentPage(::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController > screenController) const
Definition CharacterSelectorModel.h:5
MCAPI CharacterSelectorModel(::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController > screenController, ::Bedrock::NotNullNonOwnerPtr<::PersonaScreenModel > screenModel, ::LinksToStyle const &classicSkinLinksToStyle, ::LinksToStyle const &personaLinksToStyle)
MCAPI void openDefaultSelector(::StoreDataDrivenScreenController &controller)
MCAPI::std::string getPersonaConfirmText() const
MCAPI void * $ctor(::Bedrock::NotNullNonOwnerPtr<::MinecraftScreenController > screenController, ::Bedrock::NotNullNonOwnerPtr<::PersonaScreenModel > screenModel, ::LinksToStyle const &classicSkinLinksToStyle, ::LinksToStyle const &personaLinksToStyle)
MCAPI void tick(::ui::DirtyFlag &dirtyFlags)
MCAPI void castRight(::StoreDataDrivenScreenController &controller)
MCAPI void _loadContentFromSkins()
MCAPI void _setUpBeforeCharacterEditorScreen()
MCAPI::std::string getAppearanceName() const
MCAPI void castBack(::StoreDataDrivenScreenController &controller)
MCAPI void castLeft(::StoreDataDrivenScreenController &controller)
static MCAPI void closeDifferencesDialog(::StoreDataDrivenScreenController &controller)
MCAPI void openCharacterSelectModal(::CharacterSelectorVisibility previewMode)
MCAPI void closeCharacterSelectModal()
MCAPI void closeDialog(::StoreDataDrivenScreenController &controller)
MCAPI void bindPreviewSkin(::UIPropertyBag &bag)
MCAPI::std::string getPreviewImageFilePath(int index) const
MCAPI void launchDifferenceInformationPopup()
MCAPI void _closeCreatePersonaPopup()
Definition MinecraftScreenController.h:5
Definition PersonaScreenModel.h:5
Definition StoreDataDrivenScreenController.h:5
Definition UIPropertyBag.h:5
Definition CharacterSelectorData.h:5