|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
30 namespace ChatSystem {
40 strcpy(reg.
name,
"chat");
56 text =
_L(
" [whispered] ") + text;
66 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)
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)
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