wip: battle

This commit is contained in:
Ilia Denisov
2026-01-13 18:53:17 +02:00
parent 4451850f22
commit 45c725a3ee
5 changed files with 197 additions and 30 deletions
+5 -1
View File
@@ -20,10 +20,14 @@ type Repo interface {
// SaveState stores current game state updated between turns
SaveState(*game.Game) error
// LoadState retrieves game current state
// LoadState retrieves game current state with required lock acquisition
LoadState() (*game.Game, error)
// LoadStateSafe retrieves game current state without preliminary locking
LoadStateSafe() (*game.Game, error)
// SaveBattle stores
SaveBattle(t uint, b *game.BattleReport) error
}
type Controller struct {