IGameRepository

This service stores and provides access to the application's current Game state.

The CurrentGame property always returns a valid Game instance. If no game has been explicitly assigned, a new Game instance is created automatically on first access.

Properties

Property Game CurrentGame
Description Returns the currently active Game. If no Game has been assigned yet, a new Game instance is created, stored and returned.

Methods

Method void SetCurrentGame(Game game)
Description Replaces the currently active Game with specified Game instance.