OpenTTD Source 20241224-master-gf74b0cf984
|
Everything we need to know about a command to be able to execute it. More...
#include <network_internal.h>
Data Fields | |
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. | |
Everything we need to know about a command to be able to execute it.
Definition at line 94 of file network_internal.h.
|
inline |
Definition at line 95 of file network_internal.h.
CommandCallback* CommandPacket::callback |
any callback function executed upon successful completion of the command.
Definition at line 102 of file network_internal.h.
Referenced by DistributeCommandPacket(), NetworkSendCommand(), NetworkSyncCommandQueue(), NetworkGameSocketHandler::ReceiveCommand(), and NetworkGameSocketHandler::SendCommand().
Commands CommandPacket::cmd |
command being executed.
Definition at line 100 of file network_internal.h.
Referenced by NetworkReplaceCommandClientId(), NetworkSendCommand(), ServerNetworkGameSocketHandler::Receive_CLIENT_COMMAND(), ClientNetworkGameSocketHandler::Receive_SERVER_COMMAND(), NetworkGameSocketHandler::ReceiveCommand(), ServerNetworkAdminSocketHandler::SendCmdLogging(), ClientNetworkGameSocketHandler::SendCommand(), ServerNetworkGameSocketHandler::SendCommand(), and NetworkGameSocketHandler::SendCommand().
CompanyID CommandPacket::company |
company that is executing the command
Definition at line 96 of file network_internal.h.
Referenced by NetworkSendCommand(), ServerNetworkGameSocketHandler::Receive_CLIENT_COMMAND(), NetworkGameSocketHandler::ReceiveCommand(), ServerNetworkAdminSocketHandler::SendCmdLogging(), and NetworkGameSocketHandler::SendCommand().
CommandDataBuffer CommandPacket::data |
command parameters.
Definition at line 103 of file network_internal.h.
Referenced by NetworkSendCommand(), ServerNetworkGameSocketHandler::Receive_CLIENT_COMMAND(), NetworkGameSocketHandler::ReceiveCommand(), ServerNetworkAdminSocketHandler::SendCmdLogging(), NetworkGameSocketHandler::SendCommand(), and UnpackNetworkCommand().
StringID CommandPacket::err_msg |
string ID of error message to use.
Definition at line 101 of file network_internal.h.
Referenced by NetworkSendCommand(), NetworkGameSocketHandler::ReceiveCommand(), NetworkGameSocketHandler::SendCommand(), and UnpackNetworkCommand().
uint32_t CommandPacket::frame |
the frame in which this packet is executed
Definition at line 97 of file network_internal.h.
Referenced by DistributeCommandPacket(), NetworkSendCommand(), ClientNetworkGameSocketHandler::Receive_SERVER_COMMAND(), ServerNetworkAdminSocketHandler::SendCmdLogging(), and ServerNetworkGameSocketHandler::SendCommand().
bool CommandPacket::my_cmd |
did the command originate from "me"
Definition at line 98 of file network_internal.h.
Referenced by DistributeCommandPacket(), NetworkSendCommand(), ClientNetworkGameSocketHandler::Receive_SERVER_COMMAND(), ServerNetworkGameSocketHandler::SendCommand(), and UnpackNetworkCommand().