Files
wwdpublic/Content.Shared/Shuttles/Components/RadarConsoleComponent.cs
Gersoon 97d1ad3dde AlmagestV3 First update (#1088)
* AutoEquip+redEdit

* guns+projectile+equip for red

* rsi fix

* +blue

* review suggestion

* startingGear + deleteSpawnOnGamerule

* DeleteSpawnOnGamerule + map

* +magboots for marine

---------

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>
2026-03-22 14:30:39 +02:00

42 lines
1.1 KiB
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;
// WD EDIT START
[DataField, AutoNetworkedField]
public Angle FieldOfView = MathF.Tau;
[DataField]
public Angle DisplayRotation = Angle.Zero;
[DataField]
public bool RotateWithEntity = true;
// WD EDIT START
}