private void AssociateEvent(Dictionary<Event, List<Actions.Action>> rootEvents)
{
foreach (var e in rootEvents)
{
if (!e.Key.Active) { continue; }
Events.Add(e.Key, e.Value);
var evAbnormalities = e.Key as AbnormalityEvent;
if (evAbnormalities != null)
{
if (evAbnormalities.Trigger == AbnormalityTriggerType.MissingDuringFight)
{
MissingAbnormalities.Add(e.Key, e.Value);
}
else
{
AddedRemovedAbnormalities.Add(e.Key, e.Value);
}
}
var evCooldown = e.Key as CooldownEvent;
if (evCooldown != null)
{
Cooldown.Add(e.Key, e.Value);
}
var evAFK = e.Key as CommonAFKEvent;
if (evAFK != null)
{
AFK = new Tuple<Event, List<Actions.Action>>(e.Key, e.Value);
}
}
}