// MatchConfig is configuration relevant to authoritative realtime multiplayer matches.
typeMatchConfigstruct{
InputQueueSizeint`yaml:"input_queue_size" json:"input_queue_size" usage:"Size of the authoritative match buffer that stores client messages until they can be processed by the next tick. Default 128."`
CallQueueSizeint`yaml:"call_queue_size" json:"call_queue_size" usage:"Size of the authoritative match buffer that sequences calls to match handler callbacks to ensure no overlaps. Default 128."`
}
// NewMatchConfig creates a new MatchConfig struct.
funcNewMatchConfig()*MatchConfig{
return&MatchConfig{
InputQueueSize:128,
CallQueueSize:128,
}
}
// ConsoleConfig is configuration relevant to the embedded console.
typeConsoleConfigstruct{
Portint`yaml:"port" json:"port" usage:"The port for accepting connections for the embedded console, listening on all interfaces."`