40 strcpy(reg.
name,
"chat");
64 text =
_L(
" [whispered] ") + text;
74 for (
auto packet : packet_buffer)
30namespace ChatSystem {
…}
#define BITMASK_IS_1(VAR, FLAGS)
void putNetMessage(int user_id, MessageType type, const char *text)
void AddLocalStream(RoRnet::StreamRegister *reg, int size)
void HandleStreamData(std::vector< RoR::NetRecvPacket > packet_buffer)
void ReceiveStreamData(unsigned int type, int source, char *buffer)
std::string SanitizeUtf8CString(const char *start, const char *end=nullptr)
@ PEEROPT_MUTE_CHAT
CHAT and PRIVCHAT messages will not be allowed through.
@ MSG2_UTF8_CHAT
broadcast chat line in UTF8 encoding; Payload: const char*(text)
@ MSG2_UTF8_PRIVCHAT
private chat line in UTF8 encoding; Payload: uint32_t(uniqueid), const char*(text)
< Sent from the client to server and vice versa, to broadcast a new stream
int32_t type
0 = Actor, 1 = Character, 3 = ChatSystem
int32_t status
initial stream status