mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
* mass clean up
(cherry picked from commit 12bb873b02c1ef50e20763542b030452cc0613da)
* Revert "Centrifuge buff (#393)"
This reverts commit 2a59a18230.
(cherry picked from commit 9ee495ab4bb365e1ccd3dc627ecb55114fea6944)
* Shoving merge conflict
* fix rich traitor
* fix test
* yml
* fix test
* fix test
* ohh
42 lines
1.1 KiB
C#
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;
|
|
|
|
// WWDP EDIT START
|
|
|
|
[ViewVariables, AutoNetworkedField]
|
|
public float FieldOfView = MathF.Tau;
|
|
|
|
[DataField("fieldOfVision")]
|
|
public float FieldOfViewDegrees
|
|
{
|
|
get => FieldOfView / MathF.PI * 180;
|
|
set => FieldOfView = value / 180 * MathF.PI;
|
|
}
|
|
// WWDP EDIT END
|
|
|
|
/// <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;
|
|
}
|