aboutsummaryrefslogtreecommitdiff
path: root/internal/game/game.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-20 03:20:01 -0400
committerhistoria <[not public]>2026-06-20 03:20:01 -0400
commite4400c5f1e84c18d2126f2cb502ae10685977cbb (patch)
tree0523e9d68f1cfdc6f81b862e3068fe12c1a85054 /internal/game/game.go
parent5ea082ab4e82409aebc889b496f43e52b003d4f7 (diff)
downloadthehouseoficarus-e4400c5f1e84c18d2126f2cb502ae10685977cbb.tar.gz
refactor: combined all station crafting
Diffstat (limited to 'internal/game/game.go')
-rw-r--r--internal/game/game.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/game/game.go b/internal/game/game.go
index 5d6e21e..ac8622e 100644
--- a/internal/game/game.go
+++ b/internal/game/game.go
@@ -47,7 +47,7 @@ type Game struct {
WorldFlags map[string]any
ColorConfig *config.ColorsConfig
DataDir string
- ValidationConfig config.StartupValidationConfig
+ ValidationConfig config.ValidationConfig
restTimers map[string]uint64
charsMu sync.Mutex
loggedInChars map[string]*net.Session
@@ -60,7 +60,7 @@ type Game struct {
hackingStates map[string]*hacking.Session
}
-func New(dataDir string, colorConfig *config.ColorsConfig, valConfig config.StartupValidationConfig) *Game {
+func New(dataDir string, colorConfig *config.ColorsConfig, valConfig config.ValidationConfig) *Game {
g := &Game{
World: world.New(dataDir),
ObjectStore: object.NewObjectStore(dataDir),
@@ -110,9 +110,9 @@ func (g *Game) HandleSession(sess *net.Session, input string) {
case net.StatePassword:
g.handlePassword(sess, input)
case net.StateNewAccountPass:
- g.handleNewAccountPass(sess, input)
- case net.StateNewAccountConfirm:
- g.handleNewAccountConfirm(sess, input)
+ g.handleNewPass(sess, input)
+ case net.StateNewAccount:
+ g.handleNewAccount(sess, input)
case net.StateMenu:
g.handleMenu(sess, input)
case net.StateNewCharName:
@@ -129,8 +129,8 @@ func (g *Game) HandleSession(sess *net.Session, input string) {
g.handlePurgeAccount(sess, input)
case net.StateGame:
g.handleGameCommand(sess, input)
- case net.StateChangeDescription:
- g.handleDescriptionChange(sess, input)
+ case net.StateChangeDesc:
+ g.handleDescChange(sess, input)
case net.StateTalk:
g.handleTalkInput(sess, input)
case net.StateShop:
@@ -138,7 +138,7 @@ func (g *Game) HandleSession(sess *net.Session, input string) {
case net.StateBank:
g.handleBankInput(sess, input)
case net.StateDropAllConfirm:
- g.handleDropAllConfirm(sess, input)
+ g.handleDropAll(sess, input)
case net.StateRecipeChoice:
g.handleRecipeChoice(sess, input)
case net.StateHowMany: