Files
tbd-station-14/Content.Client/Eye/LerpingEyeComponent.cs
2023-08-25 14:41:04 +10:00

28 lines
700 B
C#

using System.Numerics;
namespace Content.Client.Eye;
/// <summary>
/// Component for keeping track of client-side eye lerping. This component should only be added or removed via the <see cref="EyeLerpingSystem"/>.
/// </summary>
[RegisterComponent]
public sealed partial class LerpingEyeComponent : Component
{
/// <summary>
/// False if this eye was automatically added when a player was attached to this entity.
/// </summary>
public bool ManuallyAdded = false;
[ViewVariables]
public Angle LastRotation;
[ViewVariables]
public Angle TargetRotation;
[ViewVariables]
public Vector2 LastZoom;
[ViewVariables]
public Vector2 TargetZoom;
}