using Robust.Shared.Prototypes; using System.Numerics; namespace Content.Client.DirectionalArrowIndicator; /// /// Component that manages directional arrow indicators that spawn clientside when an entity is examined. /// Handled by /// [RegisterComponent] public sealed partial class DirectionalArrowIndicatorComponent : Component { /// /// The lifetime of the arrow indicator in seconds. /// [DataField] public float Lifetime = 2f; /// /// List of arrows to spawn. /// [DataField] public List Arrows = new(); } /// /// Data for spawning a single directional arrow. /// [DataDefinition] public sealed partial class ArrowSpawnData { /// /// Offset relative to entity's position where the arrow should appear. /// [DataField] public Vector2 Offset = Vector2.Zero; /// /// Rotation of the arrow. /// [DataField] public Angle Rotation = Angle.Zero; /// /// Prototype ID of the arrow entity to spawn. /// [DataField] public EntProtoId ArrowType = "RedDirectionalArrowIndicator"; }