using Content.Shared.Inventory.Events; namespace Content.Shared.Item; /// /// Sends a to the wearer of an item with /// . /// public sealed partial class BindItemOnEquipSystem : EntitySystem { [SubscribeLocalEvent] private void OnEquipped(Entity ent, ref GotEquippedEvent args) { var ev = new BindItemEvent(ent.Owner); RaiseLocalEvent(args.EquipTarget, ref ev); } } /// /// Raised on a wearer when an equipped item requests to be bound to them. /// /// /// The receiving system defines what binding means. This event only identifies the /// and does not enforce ownership or replacement behavior. /// [ByRefEvent] public readonly record struct BindItemEvent(EntityUid Item);