mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Fixing jump in multiplayer, refactoring movement and animation systems for network and game layers * Fixing stamina dropping to 0 while running * Fixing some monsters getting stuck if they wakeup during idle emote * Reverting position * Fixing magic aftercast speed
30 lines
898 B
C#
30 lines
898 B
C#
using System.IO;
|
|
using ACE.Entity.Enum;
|
|
using ACE.Server.Entity;
|
|
|
|
namespace ACE.Server.Network.Structure
|
|
{
|
|
public class TurnToParameters
|
|
{
|
|
public MovementParams MovementParams;
|
|
public float Speed; // speed of the turn
|
|
public float DesiredHeading; // the angle to turn to
|
|
|
|
public TurnToParameters(Motion motion)
|
|
{
|
|
MovementParams = motion.MoveToParameters.MovementParameters;
|
|
Speed = motion.MoveToParameters.Speed;
|
|
DesiredHeading = motion.DesiredHeading;
|
|
}
|
|
}
|
|
|
|
public static class TurnToParametersExtensions
|
|
{
|
|
public static void Write(this BinaryWriter writer, TurnToParameters turnTo)
|
|
{
|
|
writer.Write((uint)turnTo.MovementParams);
|
|
writer.Write(turnTo.Speed);
|
|
writer.Write(turnTo.DesiredHeading);
|
|
}
|
|
}
|
|
}
|