public IEnumerable <FightEvent> EnumerateChildren() { for (FightEvent childEvent = firstChildEvent; childEvent != null; childEvent = childEvent.nextSiblingEvent) { yield return(childEvent); } }
public virtual bool CanBeGroupedWith(FightEvent other) { if (eventType == other.eventType) { return(parentEventId == other.parentEventId); } return(false); }
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; }
public override bool CanBeGroupedWith(FightEvent other) { return(false); }