public async Task <Opportunity> DrawOpportunity() { _cachedOpportunity = await _session.DrawOpportunity(); return(_cachedOpportunity); }
public async Task <Opportunity> DiscardOpportunityCard(long id) { _cachedOpportunity = await _session.DiscardOpportunity(id); return(_cachedOpportunity); }
public static IEnumerable <CardAction> GetOptions(this Opportunity opp, IEnumerable <CardAction> cardActions) { return(opp.displayCards .Select(c => cardActions.GetCardFromUseListByName(c.name, c.eventId)) .Where(c => c != null)); }