Files
tbd-station-14/Content.Client/GameObjects/Components/Pointing/PointingArrowComponent.cs
DrSmugleaf 902aa128c2 Enable nullability in Content.Client (#3257)
* Enable nullability in Content.Client

* Remove #nullable enable

* Merge fixes

* Remove Debug.Assert

* Merge fixes

* Fix build

* Fix build
2021-03-10 14:48:29 +01:00

22 lines
596 B
C#

using Content.Shared.GameObjects.Components.Pointing;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using DrawDepth = Content.Shared.GameObjects.DrawDepth;
namespace Content.Client.GameObjects.Components.Pointing
{
[RegisterComponent]
public class PointingArrowComponent : SharedPointingArrowComponent
{
protected override void Startup()
{
base.Startup();
if (Owner.TryGetComponent(out SpriteComponent? sprite))
{
sprite.DrawDepth = (int) DrawDepth.Overlays;
}
}
}
}