* itemslot overhaul * remove "shared" prefix * handle component shutdown * comments, cleanup, tests * comments and minor tweak * rename ItemSlotManagerState * fix swapping * fix merge * Add ItemSlot verb text override * fix merge (IEntity -> entityUid) * Fix merge (LabelSystem) * Fix merge (nuke disk) * fix test
19 lines
520 B
C#
19 lines
520 B
C#
using Content.Shared.Containers.ItemSlots;
|
|
using Robust.Shared.GameObjects;
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
|
|
|
namespace Content.Server.Labels.Components
|
|
{
|
|
/// <summary>
|
|
/// This component allows you to attach and remove a piece of paper to an entity.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public class PaperLabelComponent : Component
|
|
{
|
|
public override string Name => "PaperLabel";
|
|
|
|
[DataField("labelSlot")]
|
|
public ItemSlot LabelSlot = new();
|
|
}
|
|
}
|