using Content.Shared.Clothing.EntitySystems; using Content.Shared.NPC.Prototypes; using Robust.Shared.GameStates; using Robust.Shared.Prototypes; namespace Content.Shared.Clothing.Components; /// /// When equipped, adds the wearer to a faction. /// When removed, removes the wearer from a faction. /// [RegisterComponent, NetworkedComponent, Access(typeof(FactionClothingSystem))] public sealed partial class FactionClothingComponent : Component { /// /// Faction to add and remove. /// [DataField(required: true)] public ProtoId Faction = string.Empty; /// /// If true, the wearer was already part of the faction. /// This prevents wrongly removing them after removing the item. /// [DataField] public bool AlreadyMember; }