Add sprite movement states (#22940)
* Add sprite movement states Did it for borgs for reference for future implementations. * Fix * Fix prediction issue * review
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
using Content.Shared.Movement.Components;
|
||||
using Content.Shared.Movement.Systems;
|
||||
|
||||
namespace Content.Shared.Movement.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Raised on an entity whenever it has a movement input.
|
||||
/// Raised on an entity whenever it has a movement input change.
|
||||
/// </summary>
|
||||
[ByRefEvent]
|
||||
public readonly struct MoveInputEvent
|
||||
{
|
||||
public readonly EntityUid Entity;
|
||||
public readonly InputMoverComponent Component;
|
||||
public readonly MoveButtons OldMovement;
|
||||
|
||||
public MoveInputEvent(EntityUid entity)
|
||||
public MoveInputEvent(EntityUid entity, InputMoverComponent component, MoveButtons oldMovement)
|
||||
{
|
||||
Entity = entity;
|
||||
Component = component;
|
||||
OldMovement = oldMovement;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user