WeldableAttemptEvent.cs 463 B

1234567891011121314151617
  1. namespace Content.Shared.Tools.Systems;
  2. /// <summary>
  3. /// Checks that entity can be weld/unweld.
  4. /// Raised twice: before do_after and after to check that entity still valid.
  5. /// </summary>
  6. public sealed class WeldableAttemptEvent : CancellableEntityEventArgs
  7. {
  8. public readonly EntityUid User;
  9. public readonly EntityUid Tool;
  10. public WeldableAttemptEvent(EntityUid user, EntityUid tool)
  11. {
  12. User = user;
  13. Tool = tool;
  14. }
  15. }