using Content.Shared.Movement.Components; using Content.Shared.Movement.Systems; using Robust.Shared.Serialization; namespace Content.Shared.Movement.Events; /// /// Raised on an entity whenever it has a movement input change. /// [ByRefEvent] public readonly struct MoveInputEvent { public readonly Entity Entity; public readonly MoveButtons OldMovement; public readonly Direction Dir; // Shitmed Change public readonly bool State; // Shitmed Change public bool HasDirectionalMovement => (Entity.Comp.HeldMoveButtons & MoveButtons.AnyDirection) != MoveButtons.None; public MoveInputEvent(Entity entity, MoveButtons oldMovement, Direction dir, bool state) // Shitmed Change { Entity = entity; OldMovement = oldMovement; // Shitmed Change Dir = dir; State = state; } } // WD EDIT START /// /// Raised on an entity whenever it has a sprinting input change. /// public readonly struct SprintingInputEvent(Entity entity) { public readonly Entity Entity = entity; } [Serializable, NetSerializable] public sealed class ToggleInputMoverRequestEvent : EntityEventArgs; // WD EDIT END