Weldable cleanup (#19809)
This commit is contained in:
17
Content.Shared/Tools/Systems/WeldableAttemptEvent.cs
Normal file
17
Content.Shared/Tools/Systems/WeldableAttemptEvent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Content.Shared.Tools.Systems;
|
||||
|
||||
/// <summary>
|
||||
/// Checks that entity can be weld/unweld.
|
||||
/// Raised twice: before do_after and after to check that entity still valid.
|
||||
/// </summary>
|
||||
public sealed class WeldableAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public readonly EntityUid User;
|
||||
public readonly EntityUid Tool;
|
||||
|
||||
public WeldableAttemptEvent(EntityUid user, EntityUid tool)
|
||||
{
|
||||
User = user;
|
||||
Tool = tool;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user