public sealed override async Task Setup(IGameState gameState) { gameState.Grande.IsBought = true; var selection = await PlayerSelection.Select($"Papa {Name}", $"Papa {Name} gives you {StartingMoney} lira, a Grande and one of these:", Option1, Option2); gameState.Money += StartingMoney; OnSetup(gameState, selection); }
private async Task SelectSummerOrWinterVisitor() { var result = await _playerSelection.Select("Fall", "Choose a visitor card", "summer", "winter"); if (result == Selection.Option1) { _gameState.SummerVisitorDeck.DrawToHand(); } else { _gameState.WinterVisitorDeck.DrawToHand(); } }
public override async void OnApply(IGameState gameState) { var selection = await _playerSelection.Select("Benefit", "Which visitor card do you want?", "Summer", "Winter"); if (selection == Selection.Option1) { gameState.SummerVisitorDeck.DrawToHand(); } else { gameState.WinterVisitorDeck.DrawToHand(); } }