Exemplo n.º 1
0
 static DummySystem()
 {
     PlayerUnitEvents.Register(PlayerUnitEvent.UnitTypeSpellEndCast, OnDummyCast);
 }
Exemplo n.º 2
0
 /// <summary>
 /// By default, <see cref="Buff.CastingPlayer"/> and <see cref="Buff.TargetPlayer"/> are not updated when a unit changes owner.
 /// <para>This adds an event to pass over all auras and update <see cref="Buff.CastingPlayer"/> and <see cref="Buff.TargetPlayer"/> on ownership changes.</para>
 /// <para>This will ignore ownership changes of unit type 'xxxx' (<see cref="DummySystem.UNIT_TYPE_DUMMY"/>).</para>
 /// </summary>
 public static void RegisterForOwnershipChanges()
 {
     PlayerUnitEvents.Register(PlayerUnitEvent.UnitTypeChangesOwner, OnUnitTypeChangesOwner);
 }
Exemplo n.º 3
0
 public InternalHandler(string @event)
 {
     Identifier = @event;
     Func       = PlayerUnitEvents.GetFunc(@event);
 }
Exemplo n.º 4
0
 public static void Initialise()
 {
     PlayerUnitEvents.Register(PlayerUnitEvent.SpellEffect, LaunchMissile, Constants.ABILITY_CURVING_MISSILE);
 }
Exemplo n.º 5
0
 public InternalHandler(PlayerUnitEvent @event)
 {
     PlayerUnitEvent = @event;
     Func            = PlayerUnitEvents.GetFunc(@event);
 }