Core/Waypoints: Refactor to split data into path and node related info in db
Port From (https://github.com/TrinityCore/TrinityCore/commit/12186ef8573f60abeff4747da58767ee71092600)
This commit is contained in:
@@ -1118,7 +1118,7 @@ namespace Game.Entities
|
||||
|
||||
public override string GetDebugInfo()
|
||||
{
|
||||
return $"{base.GetDebugInfo()}\nAIName: {GetAIName()} ScriptName: {GetScriptName()} WaypointPath: {GetWaypointPath()} SpawnId: {GetSpawnId()}";
|
||||
return $"{base.GetDebugInfo()}\nAIName: {GetAIName()} ScriptName: {GetScriptName()} WaypointPath: {GetWaypointPathId()} SpawnId: {GetSpawnId()}";
|
||||
}
|
||||
|
||||
public override void ExitVehicle(Position exitPosition = null)
|
||||
@@ -2525,8 +2525,8 @@ namespace Game.Entities
|
||||
SetVisibilityDistanceOverride(creatureAddon.visibilityDistanceType);
|
||||
|
||||
//Load Path
|
||||
if (creatureAddon.path_id != 0)
|
||||
_waypointPathId = creatureAddon.path_id;
|
||||
if (creatureAddon.PathId != 0)
|
||||
_waypointPathId = creatureAddon.PathId;
|
||||
|
||||
if (creatureAddon.auras != null)
|
||||
{
|
||||
@@ -3509,7 +3509,7 @@ namespace Game.Entities
|
||||
public void GetTransportHomePosition(out float x, out float y, out float z, out float ori) { m_transportHomePosition.GetPosition(out x, out y, out z, out ori); }
|
||||
public Position GetTransportHomePosition() { return m_transportHomePosition; }
|
||||
|
||||
public uint GetWaypointPath() { return _waypointPathId; }
|
||||
public uint GetWaypointPathId() { return _waypointPathId; }
|
||||
public void LoadPath(uint pathid) { _waypointPathId = pathid; }
|
||||
|
||||
public (uint nodeId, uint pathId) GetCurrentWaypointInfo() { return _currentWaypointNodeInfo; }
|
||||
|
||||
@@ -347,7 +347,7 @@ namespace Game.Entities
|
||||
|
||||
public class CreatureAddon
|
||||
{
|
||||
public uint path_id;
|
||||
public uint PathId;
|
||||
public uint mount;
|
||||
public byte standState;
|
||||
public byte animTier;
|
||||
|
||||
Reference in New Issue
Block a user