LeviLamina
Loading...
Searching...
No Matches
GuiMessage.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/SoundDirection.h"
7
8class GuiMessage {
9public:
10 // GuiMessage inner types define
11 enum class MessageType : int {
12 None = 0,
13 ChatMessage = 1,
14 ClientMessage = 2,
15 LocalizedMessage = 3,
16 SystemMessage = 4,
17 WhisperMessage = 5,
18 TextObjectMessage = 6,
19 TextObjectWhisperMessage = 7,
20 AnnouncementMessage = 8,
21 AudioSubtitleMessage = 9,
22 };
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 4, ::GuiMessage::MessageType> mType;
28 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
29 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredMessage;
30 ::ll::TypedStorage<8, 32, ::std::string> mTTSMessage;
31 ::ll::TypedStorage<8, 32, ::std::string> mUsername;
32 ::ll::TypedStorage<8, 32, ::std::string> mFullString;
33 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredFullString;
34 ::ll::TypedStorage<8, 32, ::std::string> mAuthorXuid;
35 ::ll::TypedStorage<1, 1, bool> mForceVisible;
36 ::ll::TypedStorage<1, 1, bool> mTTSRequired;
37 ::ll::TypedStorage<4, 4, float> mDuration;
38 ::ll::TypedStorage<1, 1, bool> mHasBeenSeen;
39 ::ll::TypedStorage<1, 1, bool> mHasEverBeenSeen;
40 ::ll::TypedStorage<4, 4, ::SoundDirection> mDirection;
41 ::ll::TypedStorage<1, 1, bool> mIsLocalPlayer;
42 // NOLINTEND
43
44public:
45 // prevent constructor by default
46 GuiMessage& operator=(GuiMessage const&);
47 GuiMessage();
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI GuiMessage(::GuiMessage const&);
53
54 MCAPI GuiMessage(
55 ::GuiMessage::MessageType type,
56 ::std::string const& username,
57 ::std::string const& message,
58 ::std::optional<::std::string> filteredMessage,
59 ::std::string const& ttsMessage,
60 ::std::string const& authorXuid,
61 float lifetime,
62 bool forceVisible,
63 bool ttsRequired
64 );
65
66 MCFOLD ::std::string const& getAuthorXuid() const;
67
68 MCFOLD ::SoundDirection getDirection() const;
69
70 MCAPI ::std::string const getFilteredMessage() const;
71
72 MCAPI ::std::string const getFilteredString() const;
73
74 MCFOLD ::std::string const& getMessage() const;
75
76 MCFOLD ::std::string const& getString() const;
77
78 MCFOLD ::std::string const& getTTSMessage() const;
79
80 MCFOLD ::GuiMessage::MessageType getType() const;
81
82 MCFOLD ::std::string const& getUser() const;
83
84 MCFOLD bool hasBeenSeen() const;
85
86 MCAPI bool isAlive() const;
87
88 MCFOLD bool isForceVisible() const;
89
90 MCFOLD bool isLocalPlayer() const;
91
92 MCAPI ::GuiMessage& operator=(::GuiMessage&&);
93
94 MCAPI void setDuration(float seconds);
95
96 MCAPI void setHasBeenSeen();
97
98 MCAPI void setIsLocalPlayer(bool isLocalPlayer);
99
100 MCFOLD bool wasEverSeen() const;
101
102 MCAPI ~GuiMessage();
103 // NOLINTEND
104
105public:
106 // constructor thunks
107 // NOLINTBEGIN
108 MCAPI void* $ctor(::GuiMessage const&);
109
110 MCAPI void* $ctor(
111 ::GuiMessage::MessageType type,
112 ::std::string const& username,
113 ::std::string const& message,
114 ::std::optional<::std::string> filteredMessage,
115 ::std::string const& ttsMessage,
116 ::std::string const& authorXuid,
117 float lifetime,
118 bool forceVisible,
119 bool ttsRequired
120 );
121 // NOLINTEND
122
123public:
124 // destructor thunk
125 // NOLINTBEGIN
126 MCAPI void $dtor();
127 // NOLINTEND
128};
Definition GuiMessage.h:5