示例#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));
 }