1
0

PloughDoAfterEvent.cs 695 B

1234567891011121314151617181920212223
  1. using Content.Shared.DoAfter;
  2. using Robust.Shared.Map;
  3. using Robust.Shared.Serialization;
  4. namespace Content.Shared.Farming
  5. {
  6. [Serializable, NetSerializable]
  7. public sealed partial class PloughDoAfterEvent : DoAfterEvent
  8. {
  9. public NetEntity GridUid { get; }
  10. public Vector2i SnapPos { get; }
  11. public PloughActionType ActionType { get; } // Novo campo para indicar o tipo de ação
  12. public PloughDoAfterEvent(NetEntity gridUid, Vector2i snapPos, PloughActionType actionType)
  13. {
  14. GridUid = gridUid;
  15. SnapPos = snapPos;
  16. ActionType = actionType;
  17. }
  18. public override DoAfterEvent Clone() => this;
  19. }
  20. }