libspades
Ace of Spades library
GameState Struct Reference

The main data structure for libspades clients. More...

#include <gamestate.h>

Data Fields

ENetHost * host
 
ENetPeer * peer
 
struct PacketStateData stateData
 
struct PacketFogColour fogColor
 
struct PacketExistingPlayer playerData [MAX_PLAYERS]
 
struct PacketWorldUpdate playerTransforms
 
struct PacketInputData playerInputs [MAX_PLAYERS]
 
struct PacketWeaponInput playerWeaponInputs [MAX_PLAYERS]
 
struct PacketSetColour playerBlockColors [MAX_PLAYERS]
 
struct LibspadesMapData mapData
 
struct PacketSetHP HP
 
struct ResizableObjectArray objects
 
bool playersAlive [MAX_PLAYERS]
 
bitmask_t connectedPlayers
 
uint_fast8_t magazineAmmo
 
uint_fast8_t reserveAmmo
 
uint_fast8_t blocks
 
uint_fast8_t grenades
 
bool reloading
 
bool initialized
 
bool connected
 
bool canJoinGame
 
uint8_t publicKey [32]
 
int(* signData )(void *signature, void *data, size_t length)
 
enum ProtocolVersion protocolVersion
 
struct PlayerStats playerStats [MAX_PLAYERS]
 
struct GrenadeArray grenadeArray
 
uint64_t updateClock
 
void * data
 
struct LibspadesCallbacks callbacks
 

Detailed Description

The main data structure for libspades clients.

The main data structure for libspades servers.


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