Documentation
¶
Overview ¶
Package config loads user configuration from defaults, goro.ini, environment, and command-line flags. It should not depend on game runtime state.
Index ¶
- func NextScreenshotPath(now time.Time) (string, error)
- func SaveUserSettings(settings UserSettings) (string, error)
- func UserConfigPath() (string, error)
- func UserDataDir() (string, error)
- type AudioConfig
- type Config
- type FogConfig
- type GameplayConfig
- type LogConfig
- type LoginConfig
- type NetworkConfig
- type PacketConfig
- type RenderConfig
- type ScriptConfig
- type UserSettings
- type WindowConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveUserSettings ¶
func SaveUserSettings(settings UserSettings) (string, error)
func UserConfigPath ¶
func UserDataDir ¶
Types ¶
type AudioConfig ¶
type Config ¶
type Config struct {
DataDir string
Window WindowConfig
Packet PacketConfig
Login LoginConfig
Audio AudioConfig
Render RenderConfig
Network NetworkConfig
Fog FogConfig
Gameplay GameplayConfig
Script ScriptConfig
Log LogConfig
}
func LoadConfig ¶
type GameplayConfig ¶
type LoginConfig ¶
type NetworkConfig ¶
type NetworkConfig struct {
Trace bool
}
type PacketConfig ¶
type RenderConfig ¶
type ScriptConfig ¶
type ScriptConfig struct {
Path string
}
type UserSettings ¶
Click to show internal directories.
Click to hide internal directories.