using Content.Shared.Whitelist; using Robust.Shared.GameStates; namespace Content.Shared._Impstation.TooShortForUI; /// /// Blocks the use of machine UI on blacklisted or non-whitelisted machines if the entity is not: /// 1) buckled into something, like a chair or a bed /// 2) weightless /// or 3) vaulted on a table. /// [RegisterComponent, NetworkedComponent] public sealed partial class TooShortForUIComponent : Component { /// /// These entities will *not* be allowed. /// If the blacklist is null, blocks all entities. /// [DataField] public EntityWhitelist? Blacklist = null; /// /// These entities will be allowed. /// Takes priority over Blacklist /// [DataField] public EntityWhitelist? Whitelist = null; [DataField] public LocId? PopupText = "too-short-for-ui-cant-use"; }