Files
tbd-station-14/Content.Shared/Clothing/Components/AttachedClothingComponent.cs
Vera Aguilera Puerto c5f7c61041 Fix some friend access violations by allowing others access. (#8594)
Rename Friend attribute to Access attribute.
Updates submodule to v0.21.0.0 as well.
2022-06-07 11:30:27 +02:00

21 lines
794 B
C#

using Content.Shared.Clothing.EntitySystems;
namespace Content.Shared.Clothing.Components;
/// <summary>
/// This component indicates that this clothing is attached to some other entity with a <see
/// cref="ToggleableClothingComponent"/>. When unequipped, this entity should be returned to the entity that it is
/// attached to, rather than being dumped on the floor or something like that. Intended for use with hardsuits and
/// hardsuit helmets.
/// </summary>
[Access(typeof(ToggleableClothingSystem))]
[RegisterComponent]
public sealed class AttachedClothingComponent : Component
{
/// <summary>
/// The Id of the piece of clothing that this entity belongs to.
/// </summary>
[DataField("AttachedUid")]
public EntityUid AttachedUid = default!;
}