diff options
Diffstat (limited to 'internal/net/server.go')
| -rw-r--r-- | internal/net/server.go | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/internal/net/server.go b/internal/net/server.go index 5c98b62..9ae8532 100644 --- a/internal/net/server.go +++ b/internal/net/server.go @@ -8,7 +8,7 @@ import ( "net/http" "sync" - "thehouseoficarus/internal/action" + "thehouseoficarus/internal/behavior" "thehouseoficarus/internal/color" "thehouseoficarus/internal/config" "thehouseoficarus/internal/player" @@ -17,7 +17,7 @@ import ( type SessionState int const ( - StateAccountName SessionState = iota + StateAccountName SessionState = iota StatePassword StateNewAccountPass StateNewAccount @@ -60,20 +60,18 @@ type Session struct { PendingBackground bool Disconnecting bool DisconnectTicks int - Shop *action.ShopConfig + Shop *behavior.ShopConfig writeMu sync.Mutex } - - type Server struct { - config *config.Config - telnetLn net.Listener - telnetTLSLn net.Listener - httpServer *http.Server - httpsServer *http.Server - hub *Hub - handler func(*Session, string) + config *config.Config + telnetLn net.Listener + telnetTLSLn net.Listener + httpServer *http.Server + httpsServer *http.Server + hub *Hub + handler func(*Session, string) } type Hub struct { |
