3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/gameplay/api/gameplayui/DataDrivenScreenInfo.h"
7#include "mc/deps/core/utility/pub_sub/Publisher.h"
8#include "mc/ui/DataDrivenScreenClosedReason.h"
21 using ShowDataDrivenScreenCallbackSignature =
22 void(::std::optional<::std::string>
const, ::std::optional<uint>
const);
24 using ShowDataDrivenScreenCallback = ::std::function<void(::std::optional<::std::string>, ::std::optional<uint>)>;
26 using ScreenClosedCallbackSignature = void(uint, ::DataDrivenScreenClosedReason);
28 using ScreenClosedCallback = ::std::function<void(uint, ::DataDrivenScreenClosedReason)>;
30 using ClientSideCloseCallbackSignature = void();
32 using ClientSideCloseCallback = ::std::function<void()>;
40 ::Bedrock::PubSub::Publisher<
41 void(::std::optional<::std::string>, ::std::optional<uint>),
42 ::Bedrock::PubSub::ThreadModel::SingleThreaded,
44 mShowDataDrivenScreenPublisher;
45 ::ll::TypedStorage<8, 48, ::Bedrock::PubSub::Publisher<void(), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0>>
46 mClientSideClosePublisher;
47 ::ll::TypedStorage<8, 56, ::std::optional<::GameplayUI::DataDrivenScreenInfo>> mCurrentScreen;
48 ::ll::TypedStorage<8, 8, ::PacketSender*> mPacketSender;
54 MCAPI
void clientSideCloseDataDrivenScreens();
56 MCAPI
void closeAllDataDrivenScreens();
58 MCAPI
void closeDataDrivenScreen(uint formId);
60 MCAPI
void showDataDrivenScreen(::std::string
const& screenId, uint formId, ::std::optional<uint> dataInstanceId);
Definition DataDrivenScreenAPI.h:7
Definition PacketSender.h:17
Definition SingleThreaded.h:7