3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/screens/controllers/MinecraftScreenController.h"
7#include "mc/client/social/IToastEventListener.h"
8#include "mc/client/social/ToastMessageType.h"
9#include "mc/deps/core/threading/TaskGroup.h"
10#include "mc/deps/core/utility/NonOwnerPointer.h"
11#include "mc/deps/core/utility/pub_sub/Subscription.h"
12#include "mc/network/packet/PartyDestinationCookieIntent.h"
34 ::ll::TypedStorage<1, 1, ::PartyDestinationCookieIntent> mIntent;
35 ::ll::TypedStorage<8, 32, ::std::string> mDestinationName;
42 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyInviteUpdateSubscription;
43 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyEventSubscription;
44 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyTravelSubscription;
45 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyInvalidDestinationSubscription;
46 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mPartyDestinationCookieUpdatedSubscription;
47 ::ll::TypedStorage<8, 336, ::TaskGroup> mTaskGroup;
48 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem>> mPartySystem;
49 ::ll::TypedStorage<8, 8, ::ToastManager&> mToastManager;
50 ::ll::TypedStorage<4, 4, ::std::chrono::minutes> mServerSlotReservationTime;
51 ::ll::TypedStorage<8, 48, ::std::optional<::PartySystemSubController::DestinationCookieToastRequest>>
52 mPendingDestinationCookieToast;
53 ::ll::TypedStorage<1, 1, bool> mHasActiveDestinationCookieToast;
58 PartySystemSubController& operator=(PartySystemSubController
const&);
59 PartySystemSubController(PartySystemSubController
const&);
60 PartySystemSubController();
65 virtual ~PartySystemSubController() =
default;
68 handleToastEvent(::IToastEventListener::ToastEventType
const eventType, ::ToastMessage
const msg) ;
74 MCAPI PartySystemSubController(
75 ::std::shared_ptr<::MinecraftScreenModel> minecraftScreenModel,
76 ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem> partySystem,
77 ::ToastManager& toastManager
80 MCAPI
void _handleTravelToastDeclined();
82 MCAPI
void _showDestinationCookieToast(::PartySystemSubController::DestinationCookieToastRequest
const& request);
84 MCAPI
void _showSnackbar(::std::string
const locStringKey, ::std::string
const localizationString);
86 MCAPI
void _showTravelToast(
87 ::ToastMessageType toastType,
88 ::std::string
const& toastTitle,
89 ::std::string
const& toastSubtitle,
98 ::std::shared_ptr<::MinecraftScreenModel> minecraftScreenModel,
99 ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem> partySystem,
100 ::ToastManager& toastManager
107 MCAPI
void $handleToastEvent(::IToastEventListener::ToastEventType
const eventType, ::ToastMessage
const msg);
Definition IToastEventListener.h:5
Definition MinecraftScreenController.h:5
Definition MinecraftScreenModel.h:5
Definition PartySystem.h:7
Definition PartySystemSubController.h:5
Definition ToastManager.h:5
Definition ToastMessage.h:5
Definition PartySystemSubController.h:13