2021-10-05 14:29:03 +11:00
|
|
|
using Content.Shared.Pulling;
|
|
|
|
|
using Content.Shared.Pulling.Components;
|
2021-04-05 14:08:45 +02:00
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
using Robust.Client.Physics;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.Pulling
|
2021-04-05 14:08:45 +02:00
|
|
|
{
|
|
|
|
|
[UsedImplicitly]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class PullingSystem : SharedPullingSystem
|
2021-04-05 14:08:45 +02:00
|
|
|
{
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
{
|
|
|
|
|
base.Initialize();
|
|
|
|
|
|
|
|
|
|
UpdatesAfter.Add(typeof(PhysicsSystem));
|
2022-03-18 15:40:02 +11:00
|
|
|
|
|
|
|
|
SubscribeLocalEvent<SharedPullableComponent, PullableMoveMessage>(OnPullableMove);
|
|
|
|
|
SubscribeLocalEvent<SharedPullableComponent, PullableStopMovingMessage>(OnPullableStopMove);
|
2021-04-05 14:08:45 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|