 |
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
30 namespace ChatSystem {
40 strcpy(reg.
name,
"chat");
63 text =
_L(
" [whispered] ") + text;
73 for (
auto packet : packet_buffer)
@ 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)
#define BITMASK_IS_1(VAR, FLAGS)
void HandleStreamData(std::vector< RoR::NetRecvPacket > packet_buffer)
int32_t status
initial stream status
std::string SanitizeUtf8CString(const char *start, const char *end=nullptr)
int32_t type
0 = Actor, 1 = Character, 3 = ChatSystem
void putNetMessage(int user_id, MessageType type, const char *text)
@ PEEROPT_MUTE_CHAT
CHAT and PRIVCHAT messages will not be allowed through.
void AddLocalStream(RoRnet::StreamRegister *reg, int size)
void ReceiveStreamData(unsigned int type, int source, char *buffer)
< Sent from the client to server and vice versa, to broadcast a new stream