Core/Movement: add a velocity argument for the spline chain meta table
Port From (https://github.com/TrinityCore/TrinityCore/commit/a24a5e77786266ee9456fa8c422a173168804a1f)
This commit is contained in:
@@ -386,22 +386,25 @@ namespace Game.Movement
|
||||
|
||||
public class SplineChainLink
|
||||
{
|
||||
public SplineChainLink(Vector3[] points, uint expectedDuration, uint msToNext)
|
||||
public List<Vector3> Points = new();
|
||||
public uint ExpectedDuration;
|
||||
public uint TimeToNext;
|
||||
public float Velocity;
|
||||
|
||||
public SplineChainLink(Vector3[] points, uint expectedDuration, uint msToNext, float velocity)
|
||||
{
|
||||
Points.AddRange(points);
|
||||
ExpectedDuration = expectedDuration;
|
||||
TimeToNext = msToNext;
|
||||
Velocity = velocity;
|
||||
}
|
||||
|
||||
public SplineChainLink(uint expectedDuration, uint msToNext)
|
||||
public SplineChainLink(uint expectedDuration, uint msToNext, float velocity)
|
||||
{
|
||||
ExpectedDuration = expectedDuration;
|
||||
TimeToNext = msToNext;
|
||||
Velocity = velocity;
|
||||
}
|
||||
|
||||
public List<Vector3> Points = new();
|
||||
public uint ExpectedDuration;
|
||||
public uint TimeToNext;
|
||||
}
|
||||
|
||||
public class SplineChainResumeInfo
|
||||
|
||||
Reference in New Issue
Block a user