LeviLamina
Loading...
Searching...
No Matches
ToastMessage.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/services/messaging/player_messaging/ButtonActionType.h"
7#include "mc/client/social/ToastMessageType.h"
8#include "mc/deps/json/Value.h"
9
10// auto generated forward declare list
11// clang-format off
12class IToastListener;
13struct ToastIconData;
14// clang-format on
15
16class ToastMessage {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::IToastListener*> mListener;
21 ::ll::TypedStorage<1, 1, bool> mIsMergingEnabled;
22 ::ll::TypedStorage<1, 1, bool> mHasCustomPocketToast;
23 ::ll::TypedStorage<1, 1, bool> mUseCustomPocketToast;
24 ::ll::TypedStorage<1, 1, bool> mIsSilent;
25 ::ll::TypedStorage<4, 4, ::ToastMessageType> mType;
26 ::ll::TypedStorage<8, 32, ::std::string> mTitle;
27 ::ll::TypedStorage<8, 32, ::std::string> mSubtitle;
28 ::ll::TypedStorage<8, 32, ::std::string> mMessageId;
29 ::ll::TypedStorage<8, 16, ::Json::Value> mPropertyBag;
30 ::ll::TypedStorage<8, 32, ::std::string> mLink;
31 ::ll::TypedStorage<4, 4, ::PlayerMessaging::ButtonActionType> mButtonActionType;
32 ::ll::TypedStorage<1, 1, bool> mHasBeenPressed;
33 ::ll::TypedStorage<4, 4, float> mTransitInTime;
34 ::ll::TypedStorage<4, 4, float> mTransitOutTime;
35 ::ll::TypedStorage<4, 4, float> mAdditionalDisplaySeconds;
36 ::ll::TypedStorage<4, 4, float> mAlpha;
37 ::ll::TypedStorage<4, 4, float> mBackgroundAlpha;
38 ::ll::TypedStorage<4, 8, ::glm::vec2> mStartPosition;
39 ::ll::TypedStorage<4, 8, ::glm::vec2> mIdlePosition;
40 ::ll::TypedStorage<4, 8, ::glm::vec2> mEndPosition;
41 ::ll::TypedStorage<4, 8, ::glm::vec2> mCustomPocketStartPosition;
42 ::ll::TypedStorage<4, 8, ::glm::vec2> mCustomPocketIdlePosition;
43 ::ll::TypedStorage<4, 8, ::glm::vec2> mCustomPocketEndPosition;
44 ::ll::TypedStorage<8, 24, ::std::vector<::ToastIconData>> mIconRenderIds;
45 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mVisibleButton;
46 ::ll::TypedStorage<8, 32, ::std::string> mControlId;
47 ::ll::TypedStorage<8, 32, ::std::string> mPocketControlId;
48 // NOLINTEND
49
50public:
51 // prevent constructor by default
52 ToastMessage();
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI ToastMessage(::ToastMessage&&);
58
59 MCAPI ToastMessage(::ToastMessage const&);
60
61 MCAPI explicit ToastMessage(::std::string const& message);
62
63 MCAPI ToastMessage(
64 ::ToastMessageType type,
65 ::std::string const& title,
66 ::std::string const& subtitle,
67 ::Json::Value const& propertyBag
68 );
69
70 MCAPI ToastMessage(
71 ::ToastMessageType type,
72 ::std::string const& title,
73 ::std::string const& subtitle,
74 ::Json::Value const& propertyBag,
75 float displaySeconds
76 );
77
78 MCAPI ::std::vector<::ToastIconData> getIconIds() const;
79
80 MCAPI bool mergeMessage(::ToastMessage& other);
81
82 MCAPI ::ToastMessage& operator=(::ToastMessage const&);
83
84 MCAPI ::ToastMessage& operator=(::ToastMessage&&);
85
86 MCAPI ~ToastMessage();
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCAPI void* $ctor(::ToastMessage&&);
93
94 MCAPI void* $ctor(::ToastMessage const&);
95
96 MCAPI void* $ctor(::std::string const& message);
97
98 MCAPI void* $ctor(
99 ::ToastMessageType type,
100 ::std::string const& title,
101 ::std::string const& subtitle,
102 ::Json::Value const& propertyBag
103 );
104
105 MCAPI void* $ctor(
106 ::ToastMessageType type,
107 ::std::string const& title,
108 ::std::string const& subtitle,
109 ::Json::Value const& propertyBag,
110 float displaySeconds
111 );
112 // NOLINTEND
113
114public:
115 // destructor thunk
116 // NOLINTBEGIN
117 MCAPI void $dtor();
118 // NOLINTEND
119};
Definition IToastListener.h:5
Definition ToastMessage.h:5
Definition ToastIconData.h:5