3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/SoundDirection.h"
11 enum class MessageType :
int {
18 TextObjectMessage = 6,
19 TextObjectWhisperMessage = 7,
20 AnnouncementMessage = 8,
21 AudioSubtitleMessage = 9,
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;
46 GuiMessage& operator=(GuiMessage
const&);
52 MCAPI GuiMessage(::GuiMessage
const&);
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,
66 MCFOLD ::std::string
const& getAuthorXuid()
const;
68 MCFOLD ::SoundDirection getDirection()
const;
70 MCAPI ::std::string
const getFilteredMessage()
const;
72 MCAPI ::std::string
const getFilteredString()
const;
74 MCFOLD ::std::string
const& getMessage()
const;
76 MCFOLD ::std::string
const& getString()
const;
78 MCFOLD ::std::string
const& getTTSMessage()
const;
80 MCFOLD ::GuiMessage::MessageType getType()
const;
82 MCFOLD ::std::string
const& getUser()
const;
84 MCFOLD
bool hasBeenSeen()
const;
86 MCAPI
bool isAlive()
const;
88 MCFOLD
bool isForceVisible()
const;
90 MCFOLD
bool isLocalPlayer()
const;
92 MCAPI ::GuiMessage& operator=(::GuiMessage&&);
94 MCAPI
void setDuration(
float seconds);
96 MCAPI
void setHasBeenSeen();
98 MCAPI
void setIsLocalPlayer(
bool isLocalPlayer);
100 MCFOLD
bool wasEverSeen()
const;
108 MCAPI
void* $ctor(::GuiMessage
const&);
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,
Definition GuiMessage.h:5