LeviLamina
Loading...
Searching...
No Matches
PartySystemSubController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
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"
13
14// auto generated forward declare list
15// clang-format off
17class ToastManager;
18class ToastMessage;
19namespace Parties { class PartySystem; }
20// clang-format on
21
23public:
24 // PartySystemSubController inner types declare
25 // clang-format off
27 // clang-format on
28
29 // PartySystemSubController inner types define
31 public:
32 // member variables
33 // NOLINTBEGIN
34 ::ll::TypedStorage<1, 1, ::PartyDestinationCookieIntent> mIntent;
35 ::ll::TypedStorage<8, 32, ::std::string> mDestinationName;
36 // NOLINTEND
37 };
38
39public:
40 // member variables
41 // NOLINTBEGIN
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;
54 // NOLINTEND
55
56public:
57 // prevent constructor by default
58 PartySystemSubController& operator=(PartySystemSubController const&);
59 PartySystemSubController(PartySystemSubController const&);
60 PartySystemSubController();
61
62public:
63 // virtual functions
64 // NOLINTBEGIN
65 virtual ~PartySystemSubController() /*override*/ = default;
66
67 virtual void
68 handleToastEvent(::IToastEventListener::ToastEventType const eventType, ::ToastMessage const msg) /*override*/;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI PartySystemSubController(
75 ::std::shared_ptr<::MinecraftScreenModel> minecraftScreenModel,
76 ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem> partySystem,
77 ::ToastManager& toastManager
78 );
79
80 MCAPI void _handleTravelToastDeclined();
81
82 MCAPI void _showDestinationCookieToast(::PartySystemSubController::DestinationCookieToastRequest const& request);
83
84 MCAPI void _showSnackbar(::std::string const locStringKey, ::std::string const localizationString);
85
86 MCAPI void _showTravelToast(
87 ::ToastMessageType toastType,
88 ::std::string const& toastTitle,
89 ::std::string const& toastSubtitle,
90 bool showWorldIcon
91 );
92 // NOLINTEND
93
94public:
95 // constructor thunks
96 // NOLINTBEGIN
97 MCAPI void* $ctor(
98 ::std::shared_ptr<::MinecraftScreenModel> minecraftScreenModel,
99 ::Bedrock::NotNullNonOwnerPtr<::Parties::PartySystem> partySystem,
100 ::ToastManager& toastManager
101 );
102 // NOLINTEND
103
104public:
105 // virtual function thunks
106 // NOLINTBEGIN
107 MCAPI void $handleToastEvent(::IToastEventListener::ToastEventType const eventType, ::ToastMessage const msg);
108 // NOLINTEND
109};
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