2020-07-08 01:41:20 +02:00
|
|
|
|
#nullable enable
|
|
|
|
|
|
using Content.Shared.GameObjects.Components.Movement;
|
2019-04-15 21:11:38 -06:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
using Robust.Shared.Map;
|
2019-04-04 16:18:43 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.GameObjects.Components.Movement
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Moves the entity based on input from a KeyBindingInputComponent.
|
|
|
|
|
|
/// </summary>
|
2019-07-31 15:02:36 +02:00
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
[ComponentReference(typeof(IMoverComponent))]
|
2020-06-24 11:58:13 +02:00
|
|
|
|
public class PlayerInputMoverComponent : SharedPlayerInputMoverComponent
|
2019-04-04 16:18:43 +02:00
|
|
|
|
{
|
2020-09-06 16:11:53 +02:00
|
|
|
|
public override EntityCoordinates LastPosition { get; set; }
|
2019-04-04 16:18:43 +02:00
|
|
|
|
|
2020-06-24 02:21:20 +02:00
|
|
|
|
public override float StepSoundDistance { get; set; }
|
2019-04-04 16:18:43 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|