libspades
Ace of Spades library
PacketSetTool Struct Reference

Changes the held tool of a player. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 7 (Client<->Server)
 
uint8_t playerID
 The ID of the player whose held tool has changed.
 
uint8_t tool
 The held tool.
 

Detailed Description

Changes the held tool of a player.

Field Documentation

◆ tool

uint8_t PacketSetTool::tool

The held tool.

Possible values are:

  • ItemTypeSpade = 0,
  • ItemTypeBlock = 1,
  • ItemTypeGun = 2,
  • ItemTypeGrenade = 3

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