mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
feat(Core/Maps): Improve map object updater (#22392)
This commit is contained in:
@@ -926,6 +926,20 @@ MovementGeneratorType MotionMaster::GetMotionSlotType(int slot) const
|
||||
return Impl[slot]->GetMovementGeneratorType();
|
||||
}
|
||||
|
||||
bool MotionMaster::HasMovementGeneratorType(MovementGeneratorType type) const
|
||||
{
|
||||
if (empty() && type == IDLE_MOTION_TYPE)
|
||||
return true;
|
||||
|
||||
for (int i = _top; i >= 0; --i)
|
||||
{
|
||||
if (Impl[i] && Impl[i]->GetMovementGeneratorType() == type)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Xinef: Escort system
|
||||
uint32 MotionMaster::GetCurrentSplineId() const
|
||||
{
|
||||
|
||||
@@ -240,6 +240,7 @@ public:
|
||||
|
||||
[[nodiscard]] MovementGeneratorType GetCurrentMovementGeneratorType() const;
|
||||
[[nodiscard]] MovementGeneratorType GetMotionSlotType(int slot) const;
|
||||
bool HasMovementGeneratorType(MovementGeneratorType type) const;
|
||||
[[nodiscard]] uint32 GetCurrentSplineId() const; // Xinef: Escort system
|
||||
|
||||
void propagateSpeedChange();
|
||||
|
||||
Reference in New Issue
Block a user