2021-07-21 21:15:12 +10:00
|
|
|
using Content.Shared.Movement;
|
2021-11-21 17:09:49 +11:00
|
|
|
using Content.Shared.Shuttles.Components;
|
2021-07-21 21:15:12 +10:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Shuttles
|
|
|
|
|
{
|
|
|
|
|
public abstract class SharedShuttleConsoleSystem : EntitySystem
|
|
|
|
|
{
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
{
|
|
|
|
|
base.Initialize();
|
|
|
|
|
SubscribeLocalEvent<PilotComponent, MovementAttemptEvent>(HandleMovementBlock);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void HandleMovementBlock(EntityUid uid, PilotComponent component, MovementAttemptEvent args)
|
|
|
|
|
{
|
|
|
|
|
if (component.Console == null) return;
|
|
|
|
|
args.Cancel();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|