Pulling rework (#20906)
* Pulling rework Fixing up the FOUR systems managing pulling, all the shitcode, and also making it nicer ingame. * More pulling cleanup * stats * More cleanup * First draft * More pulling * weh * Fix puller * Pulling working * Fix merge * Dunked * Self-merge time
This commit is contained in:
@@ -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,11 +0,0 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using Robust.Shared.Physics.Components;
|
||||
|
||||
namespace Content.Shared.Physics.Pull
|
||||
{
|
||||
public sealed class PullStartedMessage : PullMessage
|
||||
{
|
||||
public PullStartedMessage(PhysicsComponent puller, PhysicsComponent pulled) :
|
||||
base(puller, pulled)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using Robust.Shared.Physics.Components;
|
||||
|
||||
namespace Content.Shared.Physics.Pull
|
||||
{
|
||||
public sealed class PullStoppedMessage : PullMessage
|
||||
{
|
||||
public PullStoppedMessage(PhysicsComponent puller, PhysicsComponent pulled) : base(puller, pulled)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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