36 lines
1018 B
C#
36 lines
1018 B
C#
using Robust.Shared.Interfaces.GameObjects;
|
|
using Robust.Shared.Map;
|
|
using Robust.Shared.Maths;
|
|
|
|
namespace Content.Server.Interfaces.GameObjects.Components.Movement
|
|
{
|
|
// Does nothing except ensure uniqueness between mover components.
|
|
// There can only be one.
|
|
public interface IMoverComponent : IComponent
|
|
{
|
|
/// <summary>
|
|
/// Movement speed (m/s) that the entity walks.
|
|
/// </summary>
|
|
float WalkMoveSpeed { get; set; }
|
|
|
|
/// <summary>
|
|
/// Movement speed (m/s) that the entity sprints.
|
|
/// </summary>
|
|
float SprintMoveSpeed { get; set; }
|
|
|
|
/// <summary>
|
|
/// Is the entity Sprinting (running)?
|
|
/// </summary>
|
|
bool Sprinting { get; set; }
|
|
|
|
/// <summary>
|
|
/// Calculated linear velocity direction of the entity.
|
|
/// </summary>
|
|
Vector2 VelocityDir { get; }
|
|
|
|
GridCoordinates LastPosition { get; set; }
|
|
|
|
float StepSoundDistance { get; set; }
|
|
}
|
|
}
|