2022-04-23 15:31:45 +12:00
|
|
|
using Content.Shared.Clothing.EntitySystems;
|
2023-12-06 17:59:31 +11:00
|
|
|
using Robust.Shared.GameStates;
|
2022-04-23 15:31:45 +12:00
|
|
|
|
|
|
|
|
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>
|
2022-06-07 15:26:28 +02:00
|
|
|
[Access(typeof(ToggleableClothingSystem))]
|
2023-12-06 17:59:31 +11:00
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class AttachedClothingComponent : Component
|
2022-04-23 15:31:45 +12:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The Id of the piece of clothing that this entity belongs to.
|
|
|
|
|
/// </summary>
|
2023-12-06 17:59:31 +11:00
|
|
|
[DataField, AutoNetworkedField]
|
|
|
|
|
public EntityUid AttachedUid;
|
2022-04-23 15:31:45 +12:00
|
|
|
}
|