Expand description
This module contains the definitions for the admin packets that can be
sent by the server. All different types of packets are contained in the
enum Packet
. Packets that contain extra information also
have their own struct.
Structs§
- Chat
- Send chat from the game into the admin network.
- Client
Error - Notification about a client error (and thus the clients disconnection).
- Client
Info - Client information of a specific client.
- Client
Join - Notification of a new client.
- Client
Quit - Notification about a client leaving the game.
- Client
Update - Client update details on a specific client (e.g. after rename or move).
- CmdLogging
- Send incoming command packets to the admin network. This is for logging purposes only.
- CmdName
- CmdNames
- Send DoCommand names to the bot upon request only. Multiple of these packets can follow each other in order to provide all known DoCommand names.
- Company
Economy - Economy update of a specific company.
- Company
Info - Company
New - Notification of a new company.
- Company
Remove - Notification about a removed company (e.g. due to bankruptcy).
- Company
Stats - Company statistics on stations and vehicles.
- Company
Update - Console
- Send what would be printed on the server’s console also into the admin network.
- Date
- Send the current date of the game.
- Error
- An error was caused by this admin connection (connection gets closed).
- Gamescript
- Send a JSON string to the current active GameScript.
- Pong
- Send a ping-reply (pong) to the admin that sent us the ping packet.
- Protocol
- Inform a just joined admin about the protocol specifics.
- Rcon
- Result of an rcon command.
- RconEnd
- Notify the admin connection that the rcon command has finished.
- Update
Packet Description - Describes an update packet the admin client can register for.
- Welcome
- Welcome a connected admin to the game.