InventoryEquipActEvent.cs 722 B

12345678910111213141516171819202122232425
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.Inventory.Events;
  3. /// <summary>
  4. /// This event is used to tell the server-inventorysystem someone wants to equip something
  5. /// </summary>
  6. [NetSerializable, Serializable]
  7. public sealed class InventoryEquipActEvent : EntityEventArgs
  8. {
  9. public readonly NetEntity Uid;
  10. public readonly NetEntity ItemUid;
  11. public readonly string Slot;
  12. public readonly bool Silent;
  13. public readonly bool Force;
  14. public InventoryEquipActEvent(NetEntity uid, NetEntity itemUid, string slot, bool silent = false, bool force = false)
  15. {
  16. Uid = uid;
  17. ItemUid = itemUid;
  18. Slot = slot;
  19. Silent = silent;
  20. Force = force;
  21. }
  22. }