AttachedClothingComponent.cs 876 B

123456789101112131415161718192021
  1. using Content.Shared.Clothing.EntitySystems;
  2. using Robust.Shared.GameStates;
  3. namespace Content.Shared.Clothing.Components;
  4. /// <summary>
  5. /// This component indicates that this clothing is attached to some other entity with a <see
  6. /// cref="ToggleableClothingComponent"/>. When unequipped, this entity should be returned to the entity that it is
  7. /// attached to, rather than being dumped on the floor or something like that. Intended for use with hardsuits and
  8. /// hardsuit helmets.
  9. /// </summary>
  10. [Access(typeof(ToggleableClothingSystem))]
  11. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
  12. public sealed partial class AttachedClothingComponent : Component
  13. {
  14. /// <summary>
  15. /// The Id of the piece of clothing that this entity belongs to.
  16. /// </summary>
  17. [DataField, AutoNetworkedField]
  18. public EntityUid AttachedUid;
  19. }