ItemCabinetComponent.cs 729 B

1234567891011121314151617181920212223242526
  1. using Content.Shared.Containers.ItemSlots;
  2. using Robust.Shared.GameStates;
  3. using Robust.Shared.Serialization;
  4. namespace Content.Shared.Cabinet;
  5. /// <summary>
  6. /// Used for entities that can be opened, closed, and can hold one item. E.g., fire extinguisher cabinets.
  7. /// Requires <c>OpenableComponent</c>.
  8. /// </summary>
  9. [RegisterComponent, NetworkedComponent, Access(typeof(ItemCabinetSystem))]
  10. public sealed partial class ItemCabinetComponent : Component
  11. {
  12. /// <summary>
  13. /// Name of the <see cref="ItemSlot"/> that stores the actual item.
  14. /// </summary>
  15. [DataField]
  16. public string Slot = "ItemCabinet";
  17. }
  18. [Serializable, NetSerializable]
  19. public enum ItemCabinetVisuals : byte
  20. {
  21. ContainsItem,
  22. Layer
  23. }