3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/SettingsModalType.h"
7#include "mc/client/gui/SettingsTabIndex.h"
8#include "mc/client/gui/oreui/routing/IEntryPoint.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
24namespace OreUI::EntryPoints {
26class Settings :
public ::OreUI::IEntryPoint {
30 ::ll::TypedStorage<8, 64, ::std::function<::ILevelListCache&()>> mGetLevelListCache;
31 ::ll::TypedStorage<8, 64, ::std::function<::ServerInstance*()>> mGetServerInstance;
32 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInGame;
33 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInServer;
34 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInRealms;
35 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mAsyncTaskGroup;
36 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::RealmsAPI>> mRealms;
37 ::ll::TypedStorage<8, 8, ::ui::ScreenTechStackSelector&> mScreenTechStackSelector;
42 Settings& operator=(Settings
const&);
43 Settings(Settings
const&);
49 virtual bool shouldAddToConfiguration() const ;
51 virtual
void addToMatcher(
52 ::OreUI::RouteMatcher& routeMatcher,
53 ::SceneFactory& sceneFactory,
54 ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> const& sceneStack
64 ::std::function<::ILevelListCache&()> getLevelListCache,
65 ::std::function<::ServerInstance*()> getServerInstance,
66 ::std::function<
bool()> isInGame,
67 ::std::function<
bool()> isInServer,
68 ::std::function<
bool()> isInRealms,
69 ::std::weak_ptr<::RealmsAPI> realms,
70 ::ui::ScreenTechStackSelector& screenTechStackSelector
73 MCAPI
void _navigateToScreen(
74 ::SettingsTabIndex tabIndex,
75 ::std::
string const& path,
76 ::SceneFactory& sceneFactory,
77 ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> const& sceneStack,
78 ::OreUI::RouteAction const& routeAction,
80 bool skipLegacyProgress
83 MCAPI
bool _tryToPushRealmsManageTab(
84 ::std::
string const& path,
85 ::SceneFactory& sceneFactory,
86 ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> const& sceneStack,
87 ::SettingsTabIndex settingsTabIndex
94 MCAPI static ::std::optional<::std::
string> composeRoute(::SettingsTabIndex tabIndex);
96 MCAPI static ::std::optional<::std::
string>
97 getRouteFromTabAndModal(::SettingsTabIndex tabIndex, ::SettingsModalType modalType);
99 MCAPI static ::std::optional<::SettingsTabIndex> getTabFromPath(::std::
string const& path);
105 MCAPI static ::std::add_lvalue_reference_t<
char const[]> BASE_SCREEN_ID();
107 MCAPI static ::std::add_lvalue_reference_t<
char const[]> OREUI_ROUTE();
109 MCAPI static ::std::add_lvalue_reference_t<
char const[]> ROUTE();
116 ::std::function<::ILevelListCache&()> getLevelListCache,
117 ::std::function<::ServerInstance*()> getServerInstance,
118 ::std::function<
bool()> isInGame,
119 ::std::function<
bool()> isInServer,
120 ::std::function<
bool()> isInRealms,
121 ::std::weak_ptr<::RealmsAPI> realms,
122 ::ui::ScreenTechStackSelector& screenTechStackSelector
135 MCFOLD
bool $shouldAddToConfiguration() const;
137 MCAPI
void $addToMatcher(
138 ::OreUI::RouteMatcher& routeMatcher,
139 ::SceneFactory& sceneFactory,
140 ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> const& sceneStack
Definition ILevelListCache.h:27
Definition ISceneStack.h:5
static MCAPI void ** $vftable()
Definition RouteMatcher.h:7
Definition SceneFactory.h:5
Definition ServerInstance.h:57
Definition TaskGroup.h:57
Definition ScreenTechStackSelector.h:7
Definition RouteAction.h:7