Module server_packets

Source
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.
ClientError
Notification about a client error (and thus the clients disconnection).
ClientInfo
Client information of a specific client.
ClientJoin
Notification of a new client.
ClientQuit
Notification about a client leaving the game.
ClientUpdate
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.
CompanyEconomy
Economy update of a specific company.
CompanyInfo
CompanyNew
Notification of a new company.
CompanyRemove
Notification about a removed company (e.g. due to bankruptcy).
CompanyStats
Company statistics on stations and vehicles.
CompanyUpdate
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.
UpdatePacketDescription
Describes an update packet the admin client can register for.
Welcome
Welcome a connected admin to the game.

Enums§

Packet