Files
tbd-station-14/Content.Shared/Shuttles/Components/RadarConsoleComponent.cs
2022-06-23 14:36:47 +10:00

22 lines
603 B
C#

using Content.Shared.Shuttles.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Shuttles.Components;
[RegisterComponent, NetworkedComponent, Access(typeof(SharedRadarConsoleSystem))]
public sealed class RadarConsoleComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public float RangeVV
{
get => MaxRange;
set => IoCManager
.Resolve<IEntitySystemManager>()
.GetEntitySystem<SharedRadarConsoleSystem>()
.SetRange(this, value);
}
[ViewVariables, DataField("maxRange")]
public float MaxRange = 256f;
}