cOMS/network/packet/chat/ChatMessagePacket.h
Dennis Eichhorn 4f1cbd98f9
Some checks failed
Microsoft C++ Code Analysis / Analyze (push) Waiting to run
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Has been cancelled
started templating
2025-03-21 01:08:09 +00:00

23 lines
508 B
C

#ifndef COMS_NETWORK_PACKET_CHAT_MESSAGE_H
#define COMS_NETWORK_PACKET_CHAT_MESSAGE_H
#include <stdio.h>
#include "../../../stdlib/Types.h"
struct ChatMessagePacket {
byte* data; // fixed 8+2+?
};
struct ChatMessagePacketUnpacked {
uint32 from;
uint32 to;
byte type; // 2^3 Global, Server, Player, Group, Guild, Local
byte level; // 2^2 Normal, info (grey), important (yellow), critical (red)
uint16 length; // 2^9
char* message; // Max Length: MAX_MESSAGE_LENGTH
};
#endif