Files
tbd-station-14/Content.Shared/Shuttles/Components/IFFComponent.cs
Jake Huxell 59e46aab93 Reduced Warning Count By 130 For Full Rebuilds (#26518)
* remove deprecated entity coordinate extension functions. Reduces warning count by approximately 50

* final toCoords Removed

* Remove all unused variables and dead code paths

* remove always true variable, should be a cvar or something instead

* remove superfluous variables from tests
2024-03-29 16:28:16 +11:00

48 lines
1.3 KiB
C#

using Content.Shared.Shuttles.Systems;
using Robust.Shared.GameStates;
namespace Content.Shared.Shuttles.Components;
/// <summary>
/// Handles what a grid should look like on radar.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
[Access(typeof(SharedShuttleSystem))]
public sealed partial class IFFComponent : Component
{
public static readonly Color SelfColor = Color.MediumSpringGreen;
/// <summary>
/// Default color to use for IFF if no component is found.
/// </summary>
public static readonly Color IFFColor = Color.Gold;
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
public IFFFlags Flags = IFFFlags.None;
/// <summary>
/// Color for this to show up on IFF.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
public Color Color = IFFColor;
}
[Flags]
public enum IFFFlags : byte
{
None = 0,
/// <summary>
/// Should the label for this grid be hidden at all ranges.
/// </summary>
HideLabel,
/// <summary>
/// Should the grid hide entirely (AKA full stealth).
/// Will also hide the label if that is not set.
/// </summary>
Hide,
// TODO: Need one that hides its outline, just replace it with a bunch of triangles or lines or something.
}