wip: battle
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user