mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
* FINALLY * Update animals.yml (cherry picked from commit f9ac956c0c1a79bc73984989c2b625c25b357ca1)
26 lines
759 B
C#
26 lines
759 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Movement.Components;
|
|
|
|
/// <summary>
|
|
/// Updates a sprite layer based on whether an entity is moving via input or not.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true)]
|
|
public sealed partial class SpriteMovementComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Layer and sprite state to use when moving.
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<string, PrototypeLayerData> MovementLayers = new();
|
|
|
|
/// <summary>
|
|
/// Layer and sprite state to use when not moving.
|
|
/// </summary>
|
|
[DataField]
|
|
public Dictionary<string, PrototypeLayerData> NoMovementLayers = new();
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool IsMoving;
|
|
}
|