cOMS/network/packet/chat/ChatMessagePacket.h
Dennis Eichhorn 39fbcf4300
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Waiting to run
Microsoft C++ Code Analysis / Analyze (push) Waiting to run
linux bug fixes
2025-03-22 01:10:19 +00:00

23 lines
508 B
C
Executable File

#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