2022-06-16 15:28:16 +10:00
|
|
|
using Content.Shared.Shuttles.Systems;
|
|
|
|
|
using Robust.Shared.GameStates;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Shuttles.Components;
|
|
|
|
|
|
2023-09-28 16:20:29 -07:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
|
|
|
[Access(typeof(SharedRadarConsoleSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class RadarConsoleComponent : Component
|
2022-06-16 15:28:16 +10:00
|
|
|
{
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float RangeVV
|
|
|
|
|
{
|
|
|
|
|
get => MaxRange;
|
|
|
|
|
set => IoCManager
|
|
|
|
|
.Resolve<IEntitySystemManager>()
|
|
|
|
|
.GetEntitySystem<SharedRadarConsoleSystem>()
|
2023-07-08 09:02:17 -07:00
|
|
|
.SetRange(Owner, value, this);
|
2022-06-16 15:28:16 +10:00
|
|
|
}
|
|
|
|
|
|
2023-09-28 16:20:29 -07:00
|
|
|
[DataField, AutoNetworkedField]
|
2022-06-23 14:36:47 +10:00
|
|
|
public float MaxRange = 256f;
|
2024-02-27 02:19:51 +03:00
|
|
|
|
|
|
|
|
/// <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;
|
2022-06-16 15:28:16 +10:00
|
|
|
}
|