public PlayerChoiceEvent(XElement definition) : base(definition) { var index = 1; var result = from item in definition.Descendants("Option") select new PlayerChoiceOption(index++, TriggeredEvent.Create(item)); Options = result.ToImmutableArray <PlayerChoiceOption>(); }
public EventData(GameEventTrigger trigger, TriggeredEvent triggeredEvent, Card card) { Trigger = trigger; TriggeredEvent = triggeredEvent; Card = card; }
public static TriggeredEvent Create(XElement options, Card owningCard) { return(TriggeredEvent.Create(options)); }