2023-07-08 14:08:32 +10:00
|
|
|
using System.Numerics;
|
2022-02-10 16:27:34 +13:00
|
|
|
using Content.Shared.Pointing.Components;
|
2020-07-24 14:51:18 +02:00
|
|
|
|
2023-01-17 18:01:53 -04:00
|
|
|
namespace Content.Client.Pointing.Components;
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
public sealed class PointingArrowComponent : SharedPointingArrowComponent
|
2020-07-24 14:51:18 +02:00
|
|
|
{
|
2023-01-17 18:01:53 -04:00
|
|
|
/// <summary>
|
|
|
|
|
/// How long it takes to go from the bottom of the animation to the top.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("animationTime")]
|
|
|
|
|
public readonly float AnimationTime = 0.5f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// How far it goes in any direction.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("offset")]
|
2023-07-08 14:08:32 +10:00
|
|
|
public readonly Vector2 Offset = new(0, 0.25f);
|
2023-01-17 18:01:53 -04:00
|
|
|
|
|
|
|
|
public readonly string AnimationKey = "pointingarrow";
|
2020-07-24 14:51:18 +02:00
|
|
|
}
|