Skip to content
LeviMC
English
AutoLightDark
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<1, 1, bool> mIsPersistent;
26 ::ll::TypedStorage<4, 4, ::ToastMessageType> mType;
27 ::ll::TypedStorage<8, 32, ::std::string> mTitle;
28 ::ll::TypedStorage<8, 32, ::std::string> mSubtitle;
29 ::ll::TypedStorage<8, 32, ::std::string> mMessageId;
30 ::ll::TypedStorage<8, 16, ::Json::Value> mPropertyBag;
31 ::ll::TypedStorage<8, 32, ::std::string> mLink;
32 ::ll::TypedStorage<4, 4, ::PlayerMessaging::ButtonActionType> mButtonActionType;
33 ::ll::TypedStorage<1, 1, bool> mHasBeenPressed;
34 ::ll::TypedStorage<4, 4, float> mTransitInTime;
35 ::ll::TypedStorage<4, 4, float> mTransitOutTime;
36 ::ll::TypedStorage<4, 4, float> mAdditionalDisplaySeconds;
37 ::ll::TypedStorage<4, 4, float> mAlpha;
38 ::ll::TypedStorage<4, 4, float> mBackgroundAlpha;
39 ::ll::TypedStorage<4, 8, ::glm::vec2> mStartPosition;
40 ::ll::TypedStorage<4, 8, ::glm::vec2> mIdlePosition;
41 ::ll::TypedStorage<4, 8, ::glm::vec2> mEndPosition;
42 ::ll::TypedStorage<4, 8, ::glm::vec2> mCustomPocketStartPosition;
43 ::ll::TypedStorage<4, 8, ::glm::vec2> mCustomPocketIdlePosition;
44 ::ll::TypedStorage<4, 8, ::glm::vec2> mCustomPocketEndPosition;
45 ::ll::TypedStorage<8, 24, ::std::vector<::ToastIconData>> mIconRenderIds;
46 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mVisibleButton;
47 ::ll::TypedStorage<8, 32, ::std::string> mControlId;
48 ::ll::TypedStorage<8, 32, ::std::string> mPocketControlId;
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 ToastMessage();
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCNAPI ToastMessage(::ToastMessage const&);
59
60 MCNAPI explicit ToastMessage(::std::string const& message);
61
63 ::ToastMessageType type,
64 ::std::string const& title,
65 ::std::string const& subtitle,
66 ::Json::Value const& propertyBag,
67 float displaySeconds
68 );
69
71 ::ToastMessageType type,
72 ::std::string const& title,
73 ::std::string const& subtitle,
74 ::std::string const& messageId,
75 bool isSilent,
76 ::std::string const& link,
77 ::PlayerMessaging::ButtonActionType buttonActionType
78 );
79
80 MCNAPI ::ToastMessage& operator=(::ToastMessage const&);
81
82 MCNAPI ~ToastMessage();
83 // NOLINTEND
84
85public:
86 // constructor thunks
87 // NOLINTBEGIN
88 MCNAPI void* $ctor(::ToastMessage const&);
89
90 MCNAPI void* $ctor(::std::string const& message);
91
92 MCNAPI void* $ctor(
93 ::ToastMessageType type,
94 ::std::string const& title,
95 ::std::string const& subtitle,
96 ::Json::Value const& propertyBag,
97 float displaySeconds
98 );
99
100 MCNAPI void* $ctor(
101 ::ToastMessageType type,
102 ::std::string const& title,
103 ::std::string const& subtitle,
104 ::std::string const& messageId,
105 bool isSilent,
106 ::std::string const& link,
107 ::PlayerMessaging::ButtonActionType buttonActionType
108 );
109 // NOLINTEND
110
111public:
112 // destructor thunk
113 // NOLINTBEGIN
114 MCNAPI void $dtor();
115 // NOLINTEND
116};
Definition IToastListener.h:5
Definition Value.h:16
Definition ToastMessage.h:5
MCAPI void * $ctor(::std::string const &message)
MCAPI ToastMessage(::ToastMessageType type, ::std::string const &title, ::std::string const &subtitle, ::std::string const &messageId, bool isSilent, ::std::string const &link, ::PlayerMessaging::ButtonActionType buttonActionType)
MCAPI ToastMessage(::ToastMessage const &)
MCAPI::ToastMessage & operator=(::ToastMessage const &)
MCAPI void * $ctor(::ToastMessage const &)
MCAPI ~ToastMessage()
MCAPI ToastMessage(::ToastMessageType type, ::std::string const &title, ::std::string const &subtitle, ::Json::Value const &propertyBag, float displaySeconds)
MCAPI void $dtor()
MCAPI void * $ctor(::ToastMessageType type, ::std::string const &title, ::std::string const &subtitle, ::Json::Value const &propertyBag, float displaySeconds)
MCAPI ToastMessage(::std::string const &message)
MCAPI void * $ctor(::ToastMessageType type, ::std::string const &title, ::std::string const &subtitle, ::std::string const &messageId, bool isSilent, ::std::string const &link, ::PlayerMessaging::ButtonActionType buttonActionType)
Definition ToastIconData.h:5