using Robust.Shared.Serialization; namespace Content.Shared.Containers.ItemSlots; /// /// Used for various "eject this item" buttons. /// [Serializable, NetSerializable] public sealed class ItemSlotButtonPressedEvent : BoundUserInterfaceMessage { /// /// The name of the slot/container from which to insert or eject an item. /// public string SlotId; /// /// Whether to attempt to insert an item into the slot, if there is not already one inside. /// public bool TryInsert; /// /// Whether to attempt to eject the item from the slot, if it has one. /// public bool TryEject; public ItemSlotButtonPressedEvent(string slotId, bool tryEject = true, bool tryInsert = true) { SlotId = slotId; TryEject = tryEject; TryInsert = tryInsert; } }