3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/GameEventNotification.h"
7#include "mc/client/gui/SceneType.h"
8#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
9#include "mc/platform/brstd/function_ref.h"
33 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::AbstractScene>> mScene;
34 ::ll::TypedStorage<1, 1, bool> mHasCompletedPrepop;
40 virtual ~SceneElement();
60 using PushSceneCallback =
61 ::std::function<void(::std::shared_ptr<::AbstractScene>, ::std::optional<::OreUI::RouteAction>)>;
65 using PopSceneCallback =
66 ::std::function<void(::std::shared_ptr<::AbstractScene>,
bool, ::std::optional<::OreUI::RouteAction>)>;
68 using PostFlushCallback = ::std::function<void()>;
81 virtual void reload() = 0;
83 virtual void setOptions(::std::weak_ptr<::Options> options) = 0;
86 registerSceneChangeCallback(
void* token, ::std::function<
void(
::AbstractScene&)> sceneChangeCallback) = 0;
88 virtual void unregisterSceneChangeCallback(
void* token) = 0;
91 registerPrePushSceneCallback(
void* token, ::std::function<
void(
::AbstractScene&)> prePushSceneCallback) = 0;
93 virtual void unregisterPrePushSceneCallback(
void* token) = 0;
95 virtual void registerPushSceneCallback(
97 ::std::function<
void(::std::shared_ptr<::AbstractScene>, ::std::optional<::OreUI::RouteAction>)>
101 virtual void unregisterPushSceneCallback(
void* token) = 0;
104 registerPrePopSceneCallback(
void* token, ::std::function<
void(
::AbstractScene*)> prePopSceneCallback) = 0;
106 virtual void unregisterPrePopSceneCallback(
void* token) = 0;
108 virtual void registerPopSceneCallback(
110 ::std::function<
void(::std::shared_ptr<::AbstractScene>,
bool, ::std::optional<::OreUI::RouteAction>)>
114 virtual void unregisterPopSceneCallback(
void* token) = 0;
116 virtual void forEachVisibleScreen(
118 bool tickedLastFrame,
119 bool splitscreenRenderBypassThisFrame
127 virtual void forEachAlwaysAcceptInputScreen(
134 virtual void pushScreenWithRouteAction(
135 ::std::shared_ptr<::AbstractScene> newScreen,
141 virtual void pushScreen(::std::shared_ptr<::AbstractScene> newScreen,
bool flush) = 0;
143 virtual void schedulePopScreen(
int totalPopNumber) = 0;
145 virtual void schedulePopScreenWithExpectedNames(::std::vector<::std::string>
const& expectedScreenNames) = 0;
147 virtual void flushStack(
149 bool ignoreNotFlushableFlag,
150 bool ignoreTransitions,
151 ::std::function<
void()> postFlushCallback
154 virtual void deferUpdatesUntilNextTick() = 0;
156 virtual ::std::optional<uint64> getFirstSceneIndexOfSceneType(::ui::SceneType sceneType)
const = 0;
158 virtual bool popScreensBackTo(::ui::SceneType
const sceneType) = 0;
160 virtual bool popScreensBackToFirstInstanceOf(::ui::SceneType
const sceneType) = 0;
162 virtual bool popTopScreensOfType(::ui::SceneType
const sceneType) = 0;
164 virtual bool update() = 0;
166 virtual void resetScreenChangeDirtyFlag() = 0;
168 virtual bool hasChangedThisFrame()
const = 0;
170 virtual bool isEmpty()
const = 0;
172 virtual uint64 getSize()
const = 0;
174 virtual void setScreenTickingFlag(
bool screenIsTicking) = 0;
176 virtual bool getScreenTickingFlag()
const = 0;
178 virtual ::ui::SceneType getNonTerminatingSceneType()
const = 0;
180 virtual ::std::vector<::std::string> getScreenNames()
const = 0;
182 virtual ::std::vector<::std::string> getScreenTelemetryNames()
const = 0;
184 virtual ::std::string getScreenName()
const = 0;
186 virtual ::std::string getScreenTelemetry()
const = 0;
188 virtual ::std::string
const& getLastPoppedScreenName()
const = 0;
190 virtual void handleLicenseChanged() = 0;
192 virtual void onGameEventNotification(::ui::GameEventNotification notification) = 0;
194 virtual ::AbstractScene* getTopScene() = 0;
196 virtual ::AbstractScene
const* getTopScene()
const = 0;
198 virtual ::std::shared_ptr<::AbstractScene> getTopSceneShared()
const = 0;
200 virtual ::AbstractScene* getActiveScene() = 0;
202 virtual ::AbstractScene
const* getActiveScene()
const = 0;
204 virtual ::std::shared_ptr<::AbstractScene> getSharedNonTerminatingActiveScene() = 0;
206 virtual ::std::shared_ptr<::AbstractScene const>
const getSharedNonTerminatingActiveScene()
const = 0;
208 virtual ::gsl::span<::ISceneStack::SceneElement const> getScreenStackView()
const = 0;
210 virtual int getScheduledPopCount()
const = 0;
212 virtual bool isScreenReplaceable()
const = 0;
214 virtual void handleTextChar(::std::string
const& inputUtf8) = 0;
216 virtual void setBufferTextCharEvents(
bool pushTextCharEvents) = 0;
218 virtual bool isBufferingTextCharEvents()
const = 0;
220 virtual bool isOnSceneStack(::ui::SceneType sceneType)
const = 0;
222 virtual bool isOnSceneStack(::std::string
const& screenName)
const = 0;
224 virtual ::SceneStackProxy* getProxy() = 0;
226 virtual bool hasScheduledScreens()
const = 0;
228 virtual bool hasScheduledEvents()
const = 0;
232 virtual ::Bedrock::PubSub::Subscription registerSceneStackDestroyedListener(::std::function<
void()> callback) = 0;
Definition AbstractScene.h:5
Definition EnableNonOwnerReferences.h:7
Definition Subscription.h:10
Definition ISceneStack.h:5
Definition SceneStackProxy.h:5
Definition function_ref.h:60
Definition ISceneStack.h:13
static MCAPI void ** $vftable()
Definition RouteAction.h:7
Definition ScreenThreshold.h:5