コード例 #1
0
 public IEnumerable <FightEvent> EnumerateChildren()
 {
     for (FightEvent childEvent = firstChildEvent; childEvent != null; childEvent = childEvent.nextSiblingEvent)
     {
         yield return(childEvent);
     }
 }
コード例 #2
0
 public virtual bool CanBeGroupedWith(FightEvent other)
 {
     if (eventType == other.eventType)
     {
         return(parentEventId == other.parentEventId);
     }
     return(false);
 }
コード例 #3
0
        public void AddChildEvent(FightEvent fightEvent)
        {
            fightEvent.parentEvent = this;
            if (firstChildEvent == null)
            {
                firstChildEvent = fightEvent;
                return;
            }
            FightEvent fightEvent2 = firstChildEvent;
            FightEvent fightEvent3;

            do
            {
                fightEvent3 = fightEvent2;
                fightEvent2 = fightEvent3.nextSiblingEvent;
            }while (fightEvent2 != null);
            fightEvent3.nextSiblingEvent = fightEvent;
        }
コード例 #4
0
 public override bool CanBeGroupedWith(FightEvent other)
 {
     return(false);
 }