# Constants
FailedPongs is the Number of pong intervals to wait until forcing a connection restart.
LogDebug level is for very detailed non-error activity.
LogError level is used for critical errors that could lead to data loss or panic that would not be returned to a calling function.
LogInformational level is used for normal non-error activity.
LogWarning level is used for very abnormal events and errors that are also returned to a calling function.
VERSION of Gopenttd, follows Semantic Versioning.
# Variables
No description provided by the author
No description provided by the author
ErrNilState is returned when the state is nil.
No description provided by the author
No description provided by the author
No description provided by the author
ErrStateNotFound is returned when the state cache requested is not found.
Logger can be used to replace the standard logging for gopenttd.
# Structs
No description provided by the author
Chat fires when any new chat message is posted.
No description provided by the author
ClientError fires when a client experiences an error (usually causes them to quit).
ClientInfo fires when information is provided for a client (usually polled).
ClientJoin fires when a client joins.
ClientQuit fires when a client leaves the game.
ClientUpdate fires when a client changes the company it is playing as, or its name.
CmdLogging is an entry of some kind of game event that occurred.
CmdNames is a response to a request for command names.
No description provided by the author
CompanyEconomy fires when new economical data for the company is available (either polled or regularly, depends what you signed up for).
CompanyInfo fires when information for a company is provided (usually polled).
CompanyNew fires when a new company is founded.
CompanyRemove fires when a company is removed from the game.
CompanyStats fires when new statistics for the company are available (either polled or regularly, depends what you signed up for).
CompanyUpdate fires when a company changes something about its metadata, such as its name.
Connect is the data for a Connect event.
Console fires when a console message is printed to the server output.
Date fires when the game provides an update to the current game date.
Disconnect is the data for a Disconnect event.
No description provided by the author
Event provides a basic initial struct for all game events.
No description provided by the author
Gamescript is some data that was sent by a GameScript running on the server.
No description provided by the author
Pong is sent in response to a Ping request.
Protocol fires when receiving a Protocol packet during join.
Rcon fires when a line of RCON output from the server is returned.
RconEnd denotes that the given command finished.
A Session represents a connection to the OpenTTD Admin protocol.
No description provided by the author
A State contains the current known state of the server.
Welcome fires when receiving a Welcome packet, usually during join or after map load.
# Interfaces
EventHandler is an interface for OpenTTD events.
EventInterfaceProvider is an interface for providing empty interfaces for OpenTTD events.