Files
wwdpublic/Content.Shared/Shuttles/Components/RadarConsoleComponent.cs
Ed 64ccfc1afb Handheld Mass Scanner (#25526)
* handheld

* Update meta.json

* Update meta.json

* Update cargo.yml

* research

* add to borg

* bruh

* borg to T2

* fix

(cherry picked from commit 7a5f81ddb46e47078b983bfc9ba015ee67752ee3)
2024-03-07 00:59:22 +01:00

29 lines
836 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;
/// <summary>
/// If true, the radar will be centered on the entity. If not - on the grid on which it is located.
/// </summary>
[DataField]
public bool FollowEntity = false;
}