2023-08-25 14:41:04 +10:00
|
|
|
using System.Numerics;
|
|
|
|
|
|
2022-09-21 22:40:24 +12:00
|
|
|
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]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class LerpingEyeComponent : Component
|
2022-09-21 22:40:24 +12:00
|
|
|
{
|
|
|
|
|
/// <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;
|
2023-08-25 14:41:04 +10:00
|
|
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public Vector2 LastZoom;
|
|
|
|
|
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public Vector2 TargetZoom;
|
2022-09-21 22:40:24 +12:00
|
|
|
}
|