Files
OldThink/Content.Client/Pointing/Components/PointingArrowComponent.cs

23 lines
633 B
C#
Raw Normal View History

2021-06-09 22:19:39 +02:00
using Content.Shared.Pointing.Components;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
2021-06-09 22:19:39 +02:00
using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
2021-06-09 22:19:39 +02:00
namespace Content.Client.Pointing.Components
{
[RegisterComponent]
public class PointingArrowComponent : SharedPointingArrowComponent
{
protected override void Startup()
{
base.Startup();
2021-12-03 15:53:09 +01:00
if (IoCManager.Resolve<IEntityManager>().TryGetComponent(Owner, out SpriteComponent? sprite))
{
sprite.DrawDepth = (int) DrawDepth.Overlays;
}
}
}
}