aboutsummaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorworkhorse <workhorse@localhost.localdomain>2026-06-19 20:24:52 -0400
committerworkhorse <workhorse@localhost.localdomain>2026-06-19 20:24:52 -0400
commit8ee8982b8759bcae116647cc993867f4c8b0a6ce (patch)
treeee01f7b1d745cbc94d9981108a1209527487b3e5 /internal/config/config.go
parent2bec24859af8f03c80a0a58e3240519942450167 (diff)
downloadthehouseoficarus-8ee8982b8759bcae116647cc993867f4c8b0a6ce.tar.gz
reorganized items, objects, and rooms in directories. oranized module names. added startup checks.
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 122c311..124d45d 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -60,7 +60,13 @@ func DefaultColors() ColorsConfig {
}
type GameConfig struct {
- TickLength int `yaml:"tick_length"`
+ TickLength int `yaml:"tick_length"`
+ StartupValidation StartupValidationConfig `yaml:"startup_validation"`
+}
+
+type StartupValidationConfig struct {
+ CheckSources []int `yaml:"check_sources"`
+ IgnoreUnreachable []int `yaml:"ignore_unreachable"`
}
type TelnetConfig struct {
@@ -91,6 +97,10 @@ func Default() *Config {
return &Config{
Game: GameConfig{
TickLength: 600,
+ StartupValidation: StartupValidationConfig{
+ CheckSources: []int{1},
+ IgnoreUnreachable: []int{},
+ },
},
Colors: DefaultColors(),
Telnet: TelnetConfig{