Emergency revert for pulling (#24923)
Revert "Pulling rework (#20906)"
This reverts commit 0d8254b2a2.
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
using Robust.Shared.Physics.Components;
|
||||
|
||||
namespace Content.Shared.Movement.Pulling.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Raised directed on puller and pullable to determine if it can be pulled.
|
||||
/// </summary>
|
||||
public sealed class PullAttemptEvent : PullMessage
|
||||
{
|
||||
public PullAttemptEvent(EntityUid pullerUid, EntityUid pullableUid) : base(pullerUid, pullableUid) { }
|
||||
|
||||
public bool Cancelled { get; set; }
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Content.Shared.Pulling.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Raised when a request is made to stop pulling an entity.
|
||||
/// </summary>
|
||||
public record struct AttemptStopPullingEvent(EntityUid? User = null)
|
||||
{
|
||||
public readonly EntityUid? User = User;
|
||||
public bool Cancelled;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
namespace Content.Shared.Movement.Pulling.Events;
|
||||
|
||||
public abstract class PullMessage : EntityEventArgs
|
||||
{
|
||||
public readonly EntityUid PullerUid;
|
||||
public readonly EntityUid PulledUid;
|
||||
|
||||
protected PullMessage(EntityUid pullerUid, EntityUid pulledUid)
|
||||
{
|
||||
PullerUid = pullerUid;
|
||||
PulledUid = pulledUid;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace Content.Shared.Movement.Pulling.Events;
|
||||
|
||||
public sealed class PullStartedMessage : PullMessage
|
||||
{
|
||||
public PullStartedMessage(EntityUid pullerUid, EntityUid pullableUid) :
|
||||
base(pullerUid, pullableUid)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
using Robust.Shared.Physics.Components;
|
||||
|
||||
namespace Content.Shared.Movement.Pulling.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Raised directed on both puller and pullable.
|
||||
/// </summary>
|
||||
public sealed class PullStoppedMessage : PullMessage
|
||||
{
|
||||
public PullStoppedMessage(EntityUid pullerUid, EntityUid pulledUid) : base(pullerUid, pulledUid)
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
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