Core/Scripting: Get rid of ModifyVehiclePassengerExitPos

Port From (https://github.com/TrinityCore/TrinityCore/commit/7a0268d4f12914280ffa0de36100a11781f14f45)
This commit is contained in:
hondacrx
2022-05-30 13:09:19 -04:00
parent b078285a12
commit 93bd45bbf8
3 changed files with 0 additions and 14 deletions
-3
View File
@@ -1084,9 +1084,6 @@ namespace Game.Entities
pos = vehicle.GetBase().GetPosition();
pos.SetOrientation(GetOrientation());
// To-do: snap this hook out of existance
Global.ScriptMgr.ModifyVehiclePassengerExitPos(this, vehicle, pos);
// Change exit position based on seat entry addon data
if (seatAddon != null)
{
-6
View File
@@ -304,9 +304,6 @@ namespace Game.Scripting
// Called when Spell Damage is being Dealt
public virtual void ModifySpellDamageTaken(Unit target, Unit attacker, ref int damage, SpellInfo spellInfo) { }
// Called when an unit exits a vehicle
public virtual void ModifyVehiclePassengerExitPos(Unit passenger, Vehicle vehicle, Position pos) { }
}
public class GenericCreatureScript<AI> : CreatureScript where AI : CreatureAI
@@ -336,9 +333,6 @@ namespace Game.Scripting
public override bool IsDatabaseBound() { return true; }
// Called when an unit exits a vehicle
public virtual void ModifyVehiclePassengerExitPos(Unit passenger, Vehicle vehicle, Position pos) { }
// Called when a CreatureAI object is needed for the creature.
public virtual CreatureAI GetAI(Creature creature) { return null; }
}
-5
View File
@@ -1118,11 +1118,6 @@ namespace Game.Scripting
ForEach<UnitScript>(p => p.ModifySpellDamageTaken(target, attacker, ref dmg, spellInfo));
damage = dmg;
}
public void ModifyVehiclePassengerExitPos(Unit passenger, Vehicle vehicle, Position pos)
{
ForEach<UnitScript>(p => p.ModifyVehiclePassengerExitPos(passenger, vehicle, pos));
ForEach<CreatureScript>(p => p.ModifyVehiclePassengerExitPos(passenger, vehicle, pos));
}
// AreaTriggerEntityScript
public AreaTriggerAI GetAreaTriggerAI(AreaTrigger areaTrigger)