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/client/gui/oreui/routing/RouteFlags.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
25namespace OreUI::EntryPoints {
27class Settings :
public ::OreUI::IEntryPoint {
31 ::ll::TypedStorage<8, 64, ::std::function<::ILevelListCache&()>> mGetLevelListCache;
32 ::ll::TypedStorage<8, 64, ::std::function<::ServerInstance*()>> mGetServerInstance;
33 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInGame;
34 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInServer;
35 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInRealms;
36 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mAsyncTaskGroup;
37 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::RealmsAPI>> mRealms;
38 ::ll::TypedStorage<8, 8, ::ui::ScreenTechStackSelector&> mScreenTechStackSelector;
43 Settings& operator=(Settings
const&);
44 Settings(Settings
const&);
50 virtual bool shouldAddToConfiguration() const ;
52 virtual
void addToMatcher(
53 ::OreUI::RouteMatcher& routeMatcher,
54 ::SceneFactory& sceneFactory,
55 ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> const& sceneStack
63 ::std::function<::ILevelListCache&()> getLevelListCache,
64 ::std::function<::ServerInstance*()> getServerInstance,
65 ::std::function<
bool()> isInGame,
66 ::std::function<
bool()> isInServer,
67 ::std::function<
bool()> isInRealms,
68 ::std::weak_ptr<::RealmsAPI> realms,
69 ::ui::ScreenTechStackSelector& screenTechStackSelector
72 MCAPI
void _navigateToScreen(
73 ::SettingsTabIndex tabIndex,
74 ::std::
string const& path,
75 ::SceneFactory& sceneFactory,
76 ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> const& sceneStack,
77 ::OreUI::RouteAction const& routeAction,
79 bool skipLegacyProgress
82 MCAPI
bool _routeValid() const;
84 MCAPI
bool _tryToPushRealmsManageTab(
85 ::std::
string const& path,
86 ::SceneFactory& sceneFactory,
87 ::Bedrock::NotNullNonOwnerPtr<::ISceneStack> const& sceneStack,
88 ::SettingsTabIndex settingsTabIndex
95 MCAPI static ::std::optional<::std::
string> composeRoute(::SettingsTabIndex tabIndex);
97 MCAPI static ::std::
string defaultRoute();
99 MCAPI static ::std::optional<::std::
string>
100 getRouteFromTabAndModal(::SettingsTabIndex tabIndex, ::SettingsModalType modalType);
102 MCAPI static ::std::optional<::SettingsTabIndex> getTabFromPath(::std::
string const& path);
108 MCAPI static ::OreUI::EntryPoints::RouteFlags const& FLAGS();
110 MCAPI static ::std::add_lvalue_reference_t<
char const[]> OREUI_ROUTE();
112 MCAPI static ::std::add_lvalue_reference_t<
char const[]> ROUTE();
119 ::std::function<::ILevelListCache&()> getLevelListCache,
120 ::std::function<::ServerInstance*()> getServerInstance,
121 ::std::function<
bool()> isInGame,
122 ::std::function<
bool()> isInServer,
123 ::std::function<
bool()> isInRealms,
124 ::std::weak_ptr<::RealmsAPI> realms,
125 ::ui::ScreenTechStackSelector& screenTechStackSelector
132 MCFOLD
bool $shouldAddToConfiguration() const;
134 MCAPI
void $addToMatcher(
135 ::OreUI::RouteMatcher& routeMatcher,
136 ::SceneFactory& sceneFactory,
137 ::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:64
Definition TaskGroup.h:55
Definition ScreenTechStackSelector.h:7
Definition RouteAction.h:7