TrackUserComponent.cs 419 B

1234567891011121314151617
  1. using System.Numerics;
  2. namespace Content.Client.Animations;
  3. /// <summary>
  4. /// Entities with this component tracks the user's world position every frame.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class TrackUserComponent : Component
  8. {
  9. public EntityUid? User;
  10. /// <summary>
  11. /// Offset in the direction of the entity's rotation.
  12. /// </summary>
  13. public Vector2 Offset = Vector2.Zero;
  14. }