pub trait GameMode {
type StartingResources: StartingResources;
type VictoryResources;
}Expand description
A game mode defines the starting resources and victory conditions for a game.
Required Associated Types§
Sourcetype StartingResources: StartingResources
type StartingResources: StartingResources
Starting resources provided to the player at the beginning of the game.
Sourcetype VictoryResources
type VictoryResources
Resources required to achieve victory.