20 lines
566 B
C#
20 lines
566 B
C#
|
|
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 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;
|
||
|
|
}
|