Files
space-station-14/Content.Server/Shuttles/Components/IFFConsoleComponent.cs
EchoOfNothing ac3a91eac1 Fix possible bug in my fix of IFF console. Add documentation to HideOnInit. (#42122)
* Refactor OnIFFShow and OnInitIFFConsole by extracting AddAllSupportedIFFFlags method. Fix possible addition of unallowed flags.

Fix posible addition of unallowed flags in OnInitIFFConsole by performing AllowedFlags check in the extracted function.

* Add documentation to HideOnInit

* Update IFFConsoleComponent.cs

---------

Co-authored-by: SlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
2025-12-29 08:53:18 +00:00

21 lines
646 B
C#

using Content.Server.Shuttles.Systems;
using Content.Shared.Shuttles.Components;
namespace Content.Server.Shuttles.Components;
[RegisterComponent, Access(typeof(ShuttleSystem))]
public sealed partial class IFFConsoleComponent : Component
{
/// <summary>
/// Flags that this console is allowed to set.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("allowedFlags")]
public IFFFlags AllowedFlags = IFFFlags.HideLabel;
/// <summary>
/// If true, automatically applies all supported IFF flags to the console's grid on MapInitEvent.
/// </summary>
[DataField]
public bool HideOnInit = false;
}