internal GameSpellListener(WorldServerManager world) : base(world)
 {
     EventHandler.RegisterEvent <SpellDamageInfo>(EventHandler.GlobalDispatcher, GameEvents.ServerDamageDone, OnSpellDamageDone);
     EventHandler.RegisterEvent <SpellHealInfo>(EventHandler.GlobalDispatcher, GameEvents.ServerHealingDone, OnSpellHealingDone);
     EventHandler.RegisterEvent <Unit, Vector3, SpellInfo, IProtocolToken>(EventHandler.GlobalDispatcher, GameEvents.ServerSpellLaunch, OnServerSpellLaunch);
     EventHandler.RegisterEvent <Unit, Unit, SpellInfo, SpellMissType>(EventHandler.GlobalDispatcher, GameEvents.ServerSpellHit, OnServerSpellHit);
     EventHandler.RegisterEvent <Player, Vector3>(EventHandler.GlobalDispatcher, GameEvents.ServerPlayerTeleport, OnServerPlayerTeleport);
     EventHandler.RegisterEvent <Player, SpellCooldown>(EventHandler.GlobalDispatcher, GameEvents.ServerSpellCooldown, OnServerSpellCooldown);
 }
Exemple #2
0
 internal GamePlayerListener(WorldServerManager world) : base(world)
 {
     EventHandler.RegisterEvent <Player, UnitMoveType, float>(EventHandler.GlobalDispatcher, GameEvents.ServerPlayerSpeedChanged, OnPlayerSpeedChanged);
     EventHandler.RegisterEvent <Player, bool>(EventHandler.GlobalDispatcher, GameEvents.ServerPlayerRootChanged, OnPlayerRootChanged);
     EventHandler.RegisterEvent <Player, bool>(EventHandler.GlobalDispatcher, GameEvents.ServerPlayerMovementControlChanged, OnPlayerMovementControlChanged);
 }