예제 #1
0
        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>();
        }
예제 #2
0
 public EventData(GameEventTrigger trigger, TriggeredEvent triggeredEvent, Card card)
 {
     Trigger        = trigger;
     TriggeredEvent = triggeredEvent;
     Card           = card;
 }
예제 #3
0
 public static TriggeredEvent Create(XElement options, Card owningCard)
 {
     return(TriggeredEvent.Create(options));
 }