How hanlull/animepartygame-server works
AnimeParty Game Server is a Go reimplementation of the AstralParty game backend. A client bootstraps through HTTP, authenticates, then uses the framed game protocol to reach gateway handlers; those handlers serve lobby, rooms, battles, and persistent game features. The README documents SQLite persistence, loaded game configuration, hot-update delivery, and an interactive operator console. The source index includes only selected server files, so links for unsampled feature handlers are based on documented capabilities and layout, not inspected implementation details.
Main entry points: handlers.go Command handlers · store.go SQLite persistence · server.go TCP gateway · main.go Startup wiring
Components 21
Server runtime
- Startup wiring
Server/main.go - TCP gateway
Server/internal/gateway/server.go - Command handlers
Server/internal/gateway/handlers.go
Client connection
- Wire schema
proto/AstralParty.proto - HTTP bootstrap
Server/internal/gateway/web_config.go - Hot-update serving
Server/internal/gateway/hotupdate_files.go - Account authentication
Server/internal/auth/web_auth.go - Email codes
Server/internal/auth/smtp.go
Game features
- Battle engine
Server/internal/game/engine.go - Rooms and matchmaking
Server/internal/gateway/room_lifecycle.go - Battle settlement
Server/internal/gateway/room_finish.go - Single-player campaign
Server/internal/gateway/single_campaign.go - Guilds and friends
Server/internal/gateway/guilds.go - Inventory and shop
Server/internal/gateway/land_shop.go - Tasks and passes
Server/internal/gateway/tasks.go
Data and configuration
- SQLite persistence
Server/internal/db/store.go - Gameplay configuration
Server/internal/gdconf/store.go
Operator tools
- Interactive console
Server/internal/console/console.go - Operator commands
Server/internal/gateway/console_exec.go
Other components
- Game client
- Server operator
Connections 26
- Game client → HTTP bootstrap: requests bootstrap
README.md - Game client → Hot-update serving: fetches bundles
README.md - Game client → Account authentication: authenticates
README.md - Game client → TCP gateway: opens game socket
README.md - Wire schema → TCP gateway: defines messages
README.md - TCP gateway → Command handlers: dispatches commands
README.md - Account authentication → Email codes: sends login codes
README.md - Startup wiring → TCP gateway: starts listener
README.md - Startup wiring → HTTP bootstrap: starts HTTP
README.md - Startup wiring → Gameplay configuration: loads tables
README.md - Command handlers → Rooms and matchmaking: handles room actions
README.md - Command handlers → Battle engine: runs battle logic
README.md - Command handlers → Single-player campaign: serves campaign
README.md - Command handlers → Guilds and friends: serves social features
README.md - Command handlers → Inventory and shop: serves economy
README.md - Command handlers → Tasks and passes: serves progression
README.md - Rooms and matchmaking → Battle settlement: finishes battles
README.md - Battle settlement → SQLite persistence: persists results
README.md - Rooms and matchmaking → SQLite persistence: persists room state
README.md - Single-player campaign → SQLite persistence: stores progress
README.md - Guilds and friends → SQLite persistence: stores guild data
README.md - Inventory and shop → SQLite persistence: stores player data
README.md - Tasks and passes → SQLite persistence: stores progress
README.md - Server operator → Interactive console: enters commands
README.md - Interactive console → Operator commands: dispatches commands
README.md - Operator commands → SQLite persistence: changes player data
README.md