OpenTTD Source  14.0-beta1
CommandPacket Struct Reference

Everything we need to know about a command to be able to execute it. More...

#include <network_internal.h>

Public Member Functions

 CommandPacket ()
 Make sure the pointer is nullptr.
 

Data Fields

CommandPacket * next
 the next command packet (if in queue)
 
CompanyID company
 company that is executing the command
 
uint32_t frame
 the frame in which this packet is executed
 
bool my_cmd
 did the command originate from "me"
 
Commands cmd
 command being executed.
 
StringID err_msg
 string ID of error message to use.
 
CommandCallback * callback
 any callback function executed upon successful completion of the command.
 
CommandDataBuffer data
 command parameters.
 

Detailed Description

Everything we need to know about a command to be able to execute it.

Definition at line 109 of file network_internal.h.


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