public static void AddStateChangeEvent(CombatItem stateChangeEvent, AgentData agentData, SkillData skillData, MetaEventsContainer metaDataEvents, StatusEventsContainer statusEvents, List <RewardEvent> rewardEvents, List <WeaponSwapEvent> wepSwaps, List <AbstractBuffEvent> buffEvents, int evtcVersion) { switch (stateChangeEvent.IsStateChange) { case ArcDPSEnums.StateChange.EnterCombat: var enterCombatEvt = new EnterCombatEvent(stateChangeEvent, agentData); Add(statusEvents.EnterCombatEvents, enterCombatEvt.Src, enterCombatEvt); break; case ArcDPSEnums.StateChange.ExitCombat: var exitCombatEvt = new ExitCombatEvent(stateChangeEvent, agentData); Add(statusEvents.ExitCombatEvents, exitCombatEvt.Src, exitCombatEvt); break; case ArcDPSEnums.StateChange.ChangeUp: var aliveEvt = new AliveEvent(stateChangeEvent, agentData); Add(statusEvents.AliveEvents, aliveEvt.Src, aliveEvt); break; case ArcDPSEnums.StateChange.ChangeDead: var deadEvt = new DeadEvent(stateChangeEvent, agentData); Add(statusEvents.DeadEvents, deadEvt.Src, deadEvt); break; case ArcDPSEnums.StateChange.ChangeDown: var downEvt = new DownEvent(stateChangeEvent, agentData); Add(statusEvents.DownEvents, downEvt.Src, downEvt); break; case ArcDPSEnums.StateChange.Spawn: var spawnEvt = new SpawnEvent(stateChangeEvent, agentData); Add(statusEvents.SpawnEvents, spawnEvt.Src, spawnEvt); break; case ArcDPSEnums.StateChange.Despawn: var despawnEvt = new DespawnEvent(stateChangeEvent, agentData); Add(statusEvents.DespawnEvents, despawnEvt.Src, despawnEvt); break; case ArcDPSEnums.StateChange.HealthUpdate: var healthEvt = new HealthUpdateEvent(stateChangeEvent, agentData); Add(statusEvents.HealthUpdateEvents, healthEvt.Src, healthEvt); break; case ArcDPSEnums.StateChange.BarrierUpdate: var barrierEvt = new BarrierUpdateEvent(stateChangeEvent, agentData); Add(statusEvents.BarrierUpdateEvents, barrierEvt.Src, barrierEvt); break; case ArcDPSEnums.StateChange.InstanceStart: metaDataEvents.InstanceStartEvent = new InstanceStartEvent(stateChangeEvent); break; case ArcDPSEnums.StateChange.LogStart: if (stateChangeEvent.Value == 0 || stateChangeEvent.BuffDmg == 0) { return; } metaDataEvents.LogStartEvent = new LogStartEvent(stateChangeEvent); break; case ArcDPSEnums.StateChange.LogEnd: if (stateChangeEvent.Value == 0 || stateChangeEvent.BuffDmg == 0) { return; } metaDataEvents.LogEndEvent = new LogEndEvent(stateChangeEvent); break; case ArcDPSEnums.StateChange.MaxHealthUpdate: var maxHealthEvt = new MaxHealthUpdateEvent(stateChangeEvent, agentData); Add(statusEvents.MaxHealthUpdateEvents, maxHealthEvt.Src, maxHealthEvt); break; case ArcDPSEnums.StateChange.PointOfView: if (stateChangeEvent.SrcAgent == 0) { return; } metaDataEvents.PointOfViewEvent = new PointOfViewEvent(stateChangeEvent, agentData); break; case ArcDPSEnums.StateChange.Language: metaDataEvents.LanguageEvent = new LanguageEvent(stateChangeEvent); break; case ArcDPSEnums.StateChange.GWBuild: if (stateChangeEvent.SrcAgent == 0) { return; } metaDataEvents.BuildEvent = new BuildEvent(stateChangeEvent); break; case ArcDPSEnums.StateChange.ShardId: metaDataEvents.ShardEvents.Add(new ShardEvent(stateChangeEvent)); break; case ArcDPSEnums.StateChange.Reward: #if !NO_REWARDS rewardEvents.Add(new RewardEvent(stateChangeEvent)); #endif break; case ArcDPSEnums.StateChange.TeamChange: var tcEvt = new TeamChangeEvent(stateChangeEvent, agentData); Add(statusEvents.TeamChangeEvents, tcEvt.Src, tcEvt); break; case ArcDPSEnums.StateChange.AttackTarget: var aTEvt = new AttackTargetEvent(stateChangeEvent, agentData); Add(statusEvents.AttackTargetEvents, aTEvt.Src, aTEvt); Add(statusEvents.AttackTargetEventsByAttackTarget, aTEvt.AttackTarget, aTEvt); break; case ArcDPSEnums.StateChange.Targetable: var tarEvt = new TargetableEvent(stateChangeEvent, agentData); Add(statusEvents.TargetableEvents, tarEvt.Src, tarEvt); break; case ArcDPSEnums.StateChange.MapID: metaDataEvents.MapIDEvents.Add(new MapIDEvent(stateChangeEvent)); break; case ArcDPSEnums.StateChange.Guild: var gEvt = new GuildEvent(stateChangeEvent, agentData); Add(metaDataEvents.GuildEvents, gEvt.Src, gEvt); break; case ArcDPSEnums.StateChange.BuffInfo: case ArcDPSEnums.StateChange.BuffFormula: if (metaDataEvents.BuffInfoEvents.TryGetValue(stateChangeEvent.SkillID, out BuffInfoEvent buffInfoEvent)) { buffInfoEvent.CompleteBuffInfoEvent(stateChangeEvent, evtcVersion); } else { buffInfoEvent = new BuffInfoEvent(stateChangeEvent, evtcVersion); metaDataEvents.BuffInfoEvents[stateChangeEvent.SkillID] = buffInfoEvent; } if (stateChangeEvent.IsStateChange == ArcDPSEnums.StateChange.BuffInfo) { if (metaDataEvents.BuffInfoEventsByCategory.TryGetValue(buffInfoEvent.Category, out List <BuffInfoEvent> bdEvtList)) { bdEvtList.Add(buffInfoEvent); } else { metaDataEvents.BuffInfoEventsByCategory[buffInfoEvent.Category] = new List <BuffInfoEvent> { buffInfoEvent }; } } break; case ArcDPSEnums.StateChange.SkillInfo: case ArcDPSEnums.StateChange.SkillTiming: if (metaDataEvents.SkillInfoEvents.TryGetValue(stateChangeEvent.SkillID, out SkillInfoEvent skillInfoEvent)) { skillInfoEvent.CompleteSkillInfoEvent(stateChangeEvent); } else { skillInfoEvent = new SkillInfoEvent(stateChangeEvent); metaDataEvents.SkillInfoEvents[stateChangeEvent.SkillID] = skillInfoEvent; } break; case ArcDPSEnums.StateChange.BreakbarState: var bSEvt = new BreakbarStateEvent(stateChangeEvent, agentData); Add(statusEvents.BreakbarStateEvents, bSEvt.Src, bSEvt); break; case ArcDPSEnums.StateChange.BreakbarPercent: var bPEvt = new BreakbarPercentEvent(stateChangeEvent, agentData); Add(statusEvents.BreakbarPercentEvents, bPEvt.Src, bPEvt); break; case ArcDPSEnums.StateChange.Error: metaDataEvents.ErrorEvents.Add(new ErrorEvent(stateChangeEvent)); break; case ArcDPSEnums.StateChange.Tag: var tagEvent = new TagEvent(stateChangeEvent, agentData); Add(statusEvents.TagEvents, tagEvent.Src, tagEvent); break; case ArcDPSEnums.StateChange.Velocity: var velEvt = new VelocityEvent(stateChangeEvent, agentData); Add(statusEvents.MovementEvents, velEvt.Src, velEvt); break; case ArcDPSEnums.StateChange.Rotation: var rotEvt = new RotationEvent(stateChangeEvent, agentData); Add(statusEvents.MovementEvents, rotEvt.Src, rotEvt); break; case ArcDPSEnums.StateChange.Position: var posEvt = new PositionEvent(stateChangeEvent, agentData); Add(statusEvents.MovementEvents, posEvt.Src, posEvt); break; case ArcDPSEnums.StateChange.WeaponSwap: wepSwaps.Add(new WeaponSwapEvent(stateChangeEvent, agentData, skillData)); break; case ArcDPSEnums.StateChange.StackActive: buffEvents.Add(new BuffStackActiveEvent(stateChangeEvent, agentData, skillData)); break; case ArcDPSEnums.StateChange.StackReset: buffEvents.Add(new BuffStackResetEvent(stateChangeEvent, agentData, skillData)); break; case ArcDPSEnums.StateChange.BuffInitial: buffEvents.Add(new BuffApplyEvent(stateChangeEvent, agentData, skillData)); break; case ArcDPSEnums.StateChange.Effect: var effectEvt = new EffectEvent(stateChangeEvent, agentData); statusEvents.EffectEvents.Add(effectEvt); Add(statusEvents.EffectEventsByID, effectEvt.EffectID, effectEvt); Add(statusEvents.EffectEventsBySrc, effectEvt.Src, effectEvt); if (effectEvt.IsAroundDst) { Add(statusEvents.EffectEventsByDst, effectEvt.Dst, effectEvt); } break; case ArcDPSEnums.StateChange.EffectIDToGUID: if (evtcVersion >= ParserHelper.ArcDPSBuilds.FunctionalIDToGUIDEvents) { switch (ArcDPSEnums.GetContentLocal((byte)stateChangeEvent.OverstackValue)) { case ArcDPSEnums.ContentLocal.Effect: var effectGUID = new EffectGUIDEvent(stateChangeEvent); metaDataEvents.EffectGUIDEventsByEffectID[effectGUID.ContentID] = effectGUID; metaDataEvents.EffectGUIDEventsByGUID[effectGUID.ContentGUID] = effectGUID; break; case ArcDPSEnums.ContentLocal.Marker: var markerGUID = new MarkerGUIDEvent(stateChangeEvent); metaDataEvents.MarkerGUIDEventsByMarkerID[markerGUID.ContentID] = markerGUID; metaDataEvents.MarkerGUIDEventsByGUID[markerGUID.ContentGUID] = markerGUID; break; default: break; } } break; default: break; } }
public static void AddStateChangeEvent(CombatItem stateChangeEvent, AgentData agentData, SkillData skillData, MetaEventsContainer metaDataEvents, StatusEventsContainer statusEvents, List <RewardEvent> rewardEvents, List <WeaponSwapEvent> wepSwaps, List <AbstractBuffEvent> buffEvents) { switch (stateChangeEvent.IsStateChange) { case ArcDPSEnums.StateChange.EnterCombat: var enterCombatEvt = new EnterCombatEvent(stateChangeEvent, agentData); Add(statusEvents.EnterCombatEvents, enterCombatEvt.Src, enterCombatEvt); break; case ArcDPSEnums.StateChange.ExitCombat: var exitCombatEvt = new ExitCombatEvent(stateChangeEvent, agentData); Add(statusEvents.ExitCombatEvents, exitCombatEvt.Src, exitCombatEvt); break; case ArcDPSEnums.StateChange.ChangeUp: var aliveEvt = new AliveEvent(stateChangeEvent, agentData); Add(statusEvents.AliveEvents, aliveEvt.Src, aliveEvt); break; case ArcDPSEnums.StateChange.ChangeDead: var deadEvt = new DeadEvent(stateChangeEvent, agentData); Add(statusEvents.DeadEvents, deadEvt.Src, deadEvt); break; case ArcDPSEnums.StateChange.ChangeDown: var downEvt = new DownEvent(stateChangeEvent, agentData); Add(statusEvents.DownEvents, downEvt.Src, downEvt); break; case ArcDPSEnums.StateChange.Spawn: var spawnEvt = new SpawnEvent(stateChangeEvent, agentData); Add(statusEvents.SpawnEvents, spawnEvt.Src, spawnEvt); break; case ArcDPSEnums.StateChange.Despawn: var despawnEvt = new DespawnEvent(stateChangeEvent, agentData); Add(statusEvents.DespawnEvents, despawnEvt.Src, despawnEvt); break; case ArcDPSEnums.StateChange.HealthUpdate: var healthEvt = new HealthUpdateEvent(stateChangeEvent, agentData); Add(statusEvents.HealthUpdateEvents, healthEvt.Src, healthEvt); break; case ArcDPSEnums.StateChange.BarrierUpdate: var barrierEvt = new BarrierUpdateEvent(stateChangeEvent, agentData); Add(statusEvents.BarrierUpdateEvents, barrierEvt.Src, barrierEvt); break; case ArcDPSEnums.StateChange.LogStart: if (stateChangeEvent.Value == 0 || stateChangeEvent.BuffDmg == 0) { return; } metaDataEvents.LogStartEvent = new LogStartEvent(stateChangeEvent); break; case ArcDPSEnums.StateChange.LogEnd: if (stateChangeEvent.Value == 0 || stateChangeEvent.BuffDmg == 0) { return; } metaDataEvents.LogEndEvent = new LogEndEvent(stateChangeEvent); break; case ArcDPSEnums.StateChange.MaxHealthUpdate: var maxHealthEvt = new MaxHealthUpdateEvent(stateChangeEvent, agentData); Add(statusEvents.MaxHealthUpdateEvents, maxHealthEvt.Src, maxHealthEvt); break; case ArcDPSEnums.StateChange.PointOfView: if (stateChangeEvent.SrcAgent == 0) { return; } metaDataEvents.PointOfViewEvent = new PointOfViewEvent(stateChangeEvent, agentData); break; case ArcDPSEnums.StateChange.Language: metaDataEvents.LanguageEvent = new LanguageEvent(stateChangeEvent); break; case ArcDPSEnums.StateChange.GWBuild: if (stateChangeEvent.SrcAgent == 0) { return; } metaDataEvents.BuildEvent = new BuildEvent(stateChangeEvent); break; case ArcDPSEnums.StateChange.ShardId: metaDataEvents.ShardEvents.Add(new ShardEvent(stateChangeEvent)); break; case ArcDPSEnums.StateChange.Reward: #if !NO_REWARDS rewardEvents.Add(new RewardEvent(stateChangeEvent)); #endif break; case ArcDPSEnums.StateChange.TeamChange: var tcEvt = new TeamChangeEvent(stateChangeEvent, agentData); Add(statusEvents.TeamChangeEvents, tcEvt.Src, tcEvt); break; case ArcDPSEnums.StateChange.AttackTarget: var aTEvt = new AttackTargetEvent(stateChangeEvent, agentData); Add(statusEvents.AttackTargetEvents, aTEvt.Src, aTEvt); break; case ArcDPSEnums.StateChange.Targetable: var tarEvt = new TargetableEvent(stateChangeEvent, agentData); Add(statusEvents.TargetableEvents, tarEvt.Src, tarEvt); break; case ArcDPSEnums.StateChange.MapID: metaDataEvents.MapIDEvents.Add(new MapIDEvent(stateChangeEvent)); break; case ArcDPSEnums.StateChange.Guild: var gEvt = new GuildEvent(stateChangeEvent, agentData); Add(metaDataEvents.GuildEvents, gEvt.Src, gEvt); break; case ArcDPSEnums.StateChange.BuffInfo: case ArcDPSEnums.StateChange.BuffFormula: if (metaDataEvents.BuffInfoEvents.TryGetValue(stateChangeEvent.SkillID, out BuffInfoEvent buffInfoEvent)) { buffInfoEvent.CompleteBuffInfoEvent(stateChangeEvent); } else { buffInfoEvent = new BuffInfoEvent(stateChangeEvent); metaDataEvents.BuffInfoEvents[stateChangeEvent.SkillID] = buffInfoEvent; } if (stateChangeEvent.IsStateChange == ArcDPSEnums.StateChange.BuffInfo) { if (metaDataEvents.BuffInfoEventsByCategory.TryGetValue(buffInfoEvent.Category, out List <BuffInfoEvent> bdEvtList)) { bdEvtList.Add(buffInfoEvent); } else { metaDataEvents.BuffInfoEventsByCategory[buffInfoEvent.Category] = new List <BuffInfoEvent> { buffInfoEvent }; } } break; case ArcDPSEnums.StateChange.SkillInfo: case ArcDPSEnums.StateChange.SkillTiming: if (metaDataEvents.SkillInfoEvents.TryGetValue(stateChangeEvent.SkillID, out SkillInfoEvent skillInfoEvent)) { skillInfoEvent.CompleteSkillInfoEvent(stateChangeEvent); } else { skillInfoEvent = new SkillInfoEvent(stateChangeEvent); metaDataEvents.SkillInfoEvents[stateChangeEvent.SkillID] = skillInfoEvent; } break; case ArcDPSEnums.StateChange.BreakbarState: var bSEvt = new BreakbarStateEvent(stateChangeEvent, agentData); Add(statusEvents.BreakbarStateEvents, bSEvt.Src, bSEvt); break; case ArcDPSEnums.StateChange.BreakbarPercent: var bPEvt = new BreakbarPercentEvent(stateChangeEvent, agentData); Add(statusEvents.BreakbarPercentEvents, bPEvt.Src, bPEvt); break; case ArcDPSEnums.StateChange.Error: metaDataEvents.ErrorEvents.Add(new ErrorEvent(stateChangeEvent)); break; case ArcDPSEnums.StateChange.Tag: // Getting ready in case this becomes an actual state event _ = new TagEvent(stateChangeEvent, agentData); //Add(metaDataEvents.TagEvents, tagEvt.Src, tagEvt); break; case ArcDPSEnums.StateChange.Velocity: var velEvt = new VelocityEvent(stateChangeEvent, agentData); Add(statusEvents.MovementEvents, velEvt.Src, velEvt); break; case ArcDPSEnums.StateChange.Rotation: var rotEvt = new RotationEvent(stateChangeEvent, agentData); Add(statusEvents.MovementEvents, rotEvt.Src, rotEvt); break; case ArcDPSEnums.StateChange.Position: var posEvt = new PositionEvent(stateChangeEvent, agentData); Add(statusEvents.MovementEvents, posEvt.Src, posEvt); break; case ArcDPSEnums.StateChange.WeaponSwap: wepSwaps.Add(new WeaponSwapEvent(stateChangeEvent, agentData, skillData)); break; case ArcDPSEnums.StateChange.StackActive: buffEvents.Add(new BuffStackActiveEvent(stateChangeEvent, agentData, skillData)); break; case ArcDPSEnums.StateChange.StackReset: buffEvents.Add(new BuffStackResetEvent(stateChangeEvent, agentData, skillData)); break; case ArcDPSEnums.StateChange.BuffInitial: buffEvents.Add(new BuffApplyEvent(stateChangeEvent, agentData, skillData)); break; default: break; } }
public static void CreateStateChangeEvents(List <CombatItem> stateChangeEvents, MetaEventsContainer metaDataEvents, StatusEventsContainer statusEvents, List <RewardEvent> rewardEvents, AgentData agentData) { foreach (CombatItem c in stateChangeEvents) { switch (c.IsStateChange) { case ArcDPSEnums.StateChange.EnterCombat: var enterCombatEvt = new EnterCombatEvent(c, agentData); Add(statusEvents.EnterCombatEvents, enterCombatEvt.Src, enterCombatEvt); break; case ArcDPSEnums.StateChange.ExitCombat: var exitCombatEvt = new ExitCombatEvent(c, agentData); Add(statusEvents.ExitCombatEvents, exitCombatEvt.Src, exitCombatEvt); break; case ArcDPSEnums.StateChange.ChangeUp: var aliveEvt = new AliveEvent(c, agentData); Add(statusEvents.AliveEvents, aliveEvt.Src, aliveEvt); break; case ArcDPSEnums.StateChange.ChangeDead: var deadEvt = new DeadEvent(c, agentData); Add(statusEvents.DeadEvents, deadEvt.Src, deadEvt); break; case ArcDPSEnums.StateChange.ChangeDown: var downEvt = new DownEvent(c, agentData); Add(statusEvents.DownEvents, downEvt.Src, downEvt); break; case ArcDPSEnums.StateChange.Spawn: var spawnEvt = new SpawnEvent(c, agentData); Add(statusEvents.SpawnEvents, spawnEvt.Src, spawnEvt); break; case ArcDPSEnums.StateChange.Despawn: var despawnEvt = new DespawnEvent(c, agentData); Add(statusEvents.DespawnEvents, despawnEvt.Src, despawnEvt); break; case ArcDPSEnums.StateChange.HealthUpdate: var healthEvt = new HealthUpdateEvent(c, agentData); Add(statusEvents.HealthUpdateEvents, healthEvt.Src, healthEvt); break; case ArcDPSEnums.StateChange.LogStart: if (c.Value == 0 || c.BuffDmg == 0) { continue; } metaDataEvents.LogStartEvent = new LogStartEvent(c); break; case ArcDPSEnums.StateChange.LogEnd: if (c.Value == 0 || c.BuffDmg == 0) { continue; } metaDataEvents.LogEndEvent = new LogEndEvent(c); break; case ArcDPSEnums.StateChange.MaxHealthUpdate: var maxHealthEvt = new MaxHealthUpdateEvent(c, agentData); Add(statusEvents.MaxHealthUpdateEvents, maxHealthEvt.Src, maxHealthEvt); break; case ArcDPSEnums.StateChange.PointOfView: if (c.SrcAgent == 0) { continue; } metaDataEvents.PointOfViewEvent = new PointOfViewEvent(c, agentData); break; case ArcDPSEnums.StateChange.Language: metaDataEvents.LanguageEvent = new LanguageEvent(c); break; case ArcDPSEnums.StateChange.GWBuild: if (c.SrcAgent == 0) { continue; } metaDataEvents.BuildEvent = new BuildEvent(c); break; case ArcDPSEnums.StateChange.ShardId: metaDataEvents.ShardEvents.Add(new ShardEvent(c)); break; case ArcDPSEnums.StateChange.Reward: rewardEvents.Add(new RewardEvent(c)); break; case ArcDPSEnums.StateChange.TeamChange: var tcEvt = new TeamChangeEvent(c, agentData); Add(statusEvents.TeamChangeEvents, tcEvt.Src, tcEvt); break; case ArcDPSEnums.StateChange.AttackTarget: var aTEvt = new AttackTargetEvent(c, agentData); Add(statusEvents.AttackTargetEvents, aTEvt.Src, aTEvt); break; case ArcDPSEnums.StateChange.Targetable: var tarEvt = new TargetableEvent(c, agentData); Add(statusEvents.TargetableEvents, tarEvt.Src, tarEvt); break; case ArcDPSEnums.StateChange.MapID: metaDataEvents.MapIDEvents.Add(new MapIDEvent(c)); break; case ArcDPSEnums.StateChange.Guild: var gEvt = new GuildEvent(c, agentData); Add(metaDataEvents.GuildEvents, gEvt.Src, gEvt); break; case ArcDPSEnums.StateChange.BuffInfo: case ArcDPSEnums.StateChange.BuffFormula: if (metaDataEvents.BuffInfoEvents.TryGetValue(c.SkillID, out BuffInfoEvent buffInfoEvent)) { buffInfoEvent.CompleteBuffInfoEvent(c); } else { buffInfoEvent = new BuffInfoEvent(c); metaDataEvents.BuffInfoEvents[c.SkillID] = buffInfoEvent; } if (c.IsStateChange == ArcDPSEnums.StateChange.BuffInfo) { if (metaDataEvents.BuffInfoEventsByCategory.TryGetValue(buffInfoEvent.Category, out List <BuffInfoEvent> bdEvtList)) { bdEvtList.Add(buffInfoEvent); } else { metaDataEvents.BuffInfoEventsByCategory[buffInfoEvent.Category] = new List <BuffInfoEvent> { buffInfoEvent }; } } break; case ArcDPSEnums.StateChange.SkillInfo: case ArcDPSEnums.StateChange.SkillTiming: if (metaDataEvents.SkillInfoEvents.TryGetValue(c.SkillID, out SkillInfoEvent skillInfoEvent)) { skillInfoEvent.CompleteSkillInfoEvent(c); } else { skillInfoEvent = new SkillInfoEvent(c); metaDataEvents.SkillInfoEvents[c.SkillID] = skillInfoEvent; } break; case ArcDPSEnums.StateChange.BreakbarState: var bSEvt = new BreakbarStateEvent(c, agentData); Add(statusEvents.BreakbarStateEvents, bSEvt.Src, bSEvt); break; case ArcDPSEnums.StateChange.BreakbarPercent: var bPEvt = new BreakbarPercentEvent(c, agentData); Add(statusEvents.BreakbarPercentEvents, bPEvt.Src, bPEvt); break; case ArcDPSEnums.StateChange.Error: metaDataEvents.ErrorEvents.Add(new ErrorEvent(c)); break; case ArcDPSEnums.StateChange.Tag: // Getting ready in case this becomes an actual state event _ = new TagEvent(c, agentData); //Add(metaDataEvents.TagEvents, tagEvt.Src, tagEvt); break; } } }