using Robust.Shared.GameObjects; namespace Content.Shared.Containers.ItemSlots { /// /// Item was placed in or removed from one of the slots in /// public class ItemSlotChangedEvent : EntityEventArgs { public SharedItemSlotsComponent SlotsComponent; public string SlotName; public ItemSlot Slot; public readonly EntityUid? ContainedItem; public ItemSlotChangedEvent(SharedItemSlotsComponent slotsComponent, string slotName, ItemSlot slot) { SlotsComponent = slotsComponent; SlotName = slotName; Slot = slot; ContainedItem = slot.ContainerSlot.ContainedEntity?.Uid; } } }