Events.cs 532 B

1234567891011121314151617181920212223242526
  1. using Content.Shared.DoAfter;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.Wires;
  4. [Serializable, NetSerializable]
  5. public sealed partial class WireDoAfterEvent : DoAfterEvent
  6. {
  7. [DataField("action", required: true)]
  8. public WiresAction Action;
  9. [DataField("id", required: true)]
  10. public int Id;
  11. private WireDoAfterEvent()
  12. {
  13. }
  14. public WireDoAfterEvent(WiresAction action, int id)
  15. {
  16. Action = action;
  17. Id = id;
  18. }
  19. public override DoAfterEvent Clone() => this;
  20. }