libspades
Ace of Spades library
PacketStateData Struct Reference

Contains information about the game's state and the client player's ID. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 15 (Client<--Server)
 
uint8_t playerID
 The ID of the client player.
 
uint8_t fog_b
 The blue colour value of the fog.
 
uint8_t fog_g
 The green colour value of the fog.
 
uint8_t fog_r
 The red colour value of the fog.
 
uint8_t team1_b
 The blue colour value of the first team.
 
uint8_t team1_g
 The green colour value of the first team.
 
uint8_t team1_r
 The red colour value of the first team.
 
uint8_t team2_b
 The blue colour value of the second team.
 
uint8_t team2_g
 The green colour value of the second team.
 
uint8_t team2_r
 The red colour value of the second team.
 
char team1Name [10]
 The name of the first team.
 
char team2Name [10]
 The name of the second team.
 
uint8_t gamemode
 The gamemode.
 
union GamemodeData gamemodeData
 The data for the gamemode's state.
 

Detailed Description

Contains information about the game's state and the client player's ID.

Receiving this packet signifies that the map download has ended.

Field Documentation

◆ gamemode

uint8_t PacketStateData::gamemode

The gamemode.

Possible values are:

  • GamemodeTypeCTF = 0,
  • GamemodeTypeTC = 1

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