libspades
Ace of Spades library
PacketChatMessage Struct Reference

Sends a message in chat. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 17 (Client<->Server)
 
uint8_t playerID
 The ID of the player who sent the message.
 
uint8_t type
 The type of message.
 
char message [VARIABLE_LENGTH]
 The contents of the chat message.
 

Detailed Description

Sends a message in chat.

Field Documentation

◆ message

char PacketChatMessage::message[VARIABLE_LENGTH]

The contents of the chat message.

Variable length.

Todo
make fixed-width?

◆ type

uint8_t PacketChatMessage::type

The type of message.

Possible values are:

  • ChatTypeAll = 0,
  • ChatTypeTeam = 1,
  • ChatTypeSystem = 2

The documentation for this struct was generated from the following file: