mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 00:27:59 +00:00
22 lines
588 B
C#
22 lines
588 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);
|
|
}
|
|
|
|
[DataField("maxRange")]
|
|
public float MaxRange = 256f;
|
|
}
|