Emergency revert for pulling (#24923)
Revert "Pulling rework (#20906)"
This reverts commit 0d8254b2a2.
This commit is contained in:
17
Content.Shared/Pulling/Events/BeingPulledAttemptEvent.cs
Normal file
17
Content.Shared/Pulling/Events/BeingPulledAttemptEvent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Content.Shared.Pulling.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Directed event raised on the pulled to see if it can be pulled.
|
||||
/// </summary>
|
||||
public sealed class BeingPulledAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public BeingPulledAttemptEvent(EntityUid puller, EntityUid pulled)
|
||||
{
|
||||
Puller = puller;
|
||||
Pulled = pulled;
|
||||
}
|
||||
|
||||
public EntityUid Puller { get; }
|
||||
public EntityUid Pulled { get; }
|
||||
}
|
||||
}
|
||||
11
Content.Shared/Pulling/Events/PullAttemptEvent.cs
Normal file
11
Content.Shared/Pulling/Events/PullAttemptEvent.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Robust.Shared.Physics.Components;
|
||||
|
||||
namespace Content.Shared.Physics.Pull
|
||||
{
|
||||
public sealed class PullAttemptEvent : PullMessage
|
||||
{
|
||||
public PullAttemptEvent(PhysicsComponent puller, PhysicsComponent pulled) : base(puller, pulled) { }
|
||||
|
||||
public bool Cancelled { get; set; }
|
||||
}
|
||||
}
|
||||
16
Content.Shared/Pulling/Events/PullMessage.cs
Normal file
16
Content.Shared/Pulling/Events/PullMessage.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Robust.Shared.Physics.Components;
|
||||
|
||||
namespace Content.Shared.Physics.Pull
|
||||
{
|
||||
public abstract class PullMessage : EntityEventArgs
|
||||
{
|
||||
public readonly PhysicsComponent Puller;
|
||||
public readonly PhysicsComponent Pulled;
|
||||
|
||||
protected PullMessage(PhysicsComponent puller, PhysicsComponent pulled)
|
||||
{
|
||||
Puller = puller;
|
||||
Pulled = pulled;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Content.Shared/Pulling/Events/PullStartedMessage.cs
Normal file
12
Content.Shared/Pulling/Events/PullStartedMessage.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Robust.Shared.Physics.Components;
|
||||
|
||||
namespace Content.Shared.Physics.Pull
|
||||
{
|
||||
public sealed class PullStartedMessage : PullMessage
|
||||
{
|
||||
public PullStartedMessage(PhysicsComponent puller, PhysicsComponent pulled) :
|
||||
base(puller, pulled)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Content.Shared/Pulling/Events/PullStoppedMessage.cs
Normal file
11
Content.Shared/Pulling/Events/PullStoppedMessage.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Robust.Shared.Physics.Components;
|
||||
|
||||
namespace Content.Shared.Physics.Pull
|
||||
{
|
||||
public sealed class PullStoppedMessage : PullMessage
|
||||
{
|
||||
public PullStoppedMessage(PhysicsComponent puller, PhysicsComponent pulled) : base(puller, pulled)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
17
Content.Shared/Pulling/Events/StartPullAttemptEvent.cs
Normal file
17
Content.Shared/Pulling/Events/StartPullAttemptEvent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace Content.Shared.Pulling.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Directed event raised on the puller to see if it can start pulling something.
|
||||
/// </summary>
|
||||
public sealed class StartPullAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public StartPullAttemptEvent(EntityUid puller, EntityUid pulled)
|
||||
{
|
||||
Puller = puller;
|
||||
Pulled = pulled;
|
||||
}
|
||||
|
||||
public EntityUid Puller { get; }
|
||||
public EntityUid Pulled { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user