mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
17 lines
479 B
C#
17 lines
479 B
C#
using Content.Shared.Movement.Components;
|
|
using Content.Shared.Movement.Events;
|
|
|
|
namespace Content.Shared.Movement.Systems;
|
|
|
|
public abstract partial class SharedSpriteMovementSystem : EntitySystem
|
|
{
|
|
[SubscribeLocalEvent]
|
|
protected virtual void OnSpriteMoveInput(Entity<SpriteMovementComponent> ent, ref SpriteMoveEvent args)
|
|
{
|
|
if (ent.Comp.IsMoving == args.IsMoving)
|
|
return;
|
|
|
|
ent.Comp.IsMoving = args.IsMoving;
|
|
Dirty(ent);
|
|
}
|
|
}
|