battleServerConfig

package
v0.0.0-...-f363a33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Folder

func Folder(gameId string) string

func Name

func Name(index int) string

func ParseFileName

func ParseFileName(fileName string) (int, error)

Types

type BaseConfig

type BaseConfig struct {
	// Cannot be an UUID as it can be confused for a LAN one.
	Region string
	// Only used for common.GameAoE2
	Name          string
	IPv4          string
	BsPort        int
	WebSocketPort int
	// Used for all except common.GameAoE1
	OutOfBandPort int
}

type Config

type Config struct {
	BaseConfig `toml:",inline"`
	PID        uint32
	// contains filtered or unexported fields
}

func Configs

func Configs(gameId string, onlyValid bool) (configs []Config, err error)

func (Config) Path

func (c Config) Path() string

func (Config) Validate

func (c Config) Validate() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL