LerpingEyeComponent.cs 700 B

123456789101112131415161718192021222324252627
  1. using System.Numerics;
  2. namespace Content.Client.Eye;
  3. /// <summary>
  4. /// Component for keeping track of client-side eye lerping. This component should only be added or removed via the <see cref="EyeLerpingSystem"/>.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class LerpingEyeComponent : Component
  8. {
  9. /// <summary>
  10. /// False if this eye was automatically added when a player was attached to this entity.
  11. /// </summary>
  12. public bool ManuallyAdded = false;
  13. [ViewVariables]
  14. public Angle LastRotation;
  15. [ViewVariables]
  16. public Angle TargetRotation;
  17. [ViewVariables]
  18. public Vector2 LastZoom;
  19. [ViewVariables]
  20. public Vector2 TargetZoom;
  21. }