Files
tbd-station-14/Content.Shared/Shuttles/Components/RadarConsoleComponent.cs

23 lines
640 B
C#

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