Prevents the MoverSystem from overwriting the MoverComponent on an entity.

Adds the new ShuttleControllerComponent, a custom IMoverComponent that moves the parent grid when controlled by a mind.
This commit is contained in:
Acruid
2020-01-08 15:17:00 -08:00
parent 8a49546add
commit f73824adcb
6 changed files with 157 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
using Robust.Shared.Interfaces.GameObjects;
using Content.Server.GameObjects.Components.Movement;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Map;
using Robust.Shared.Maths;
@@ -31,5 +32,14 @@ namespace Content.Server.Interfaces.GameObjects.Components.Movement
GridCoordinates LastPosition { get; set; }
float StepSoundDistance { get; set; }
/// <summary>
/// Toggles one of the four cardinal directions. Each of the four directions are
/// composed into a single direction vector, <see cref="PlayerInputMoverComponent.VelocityDir"/>. Enabling
/// opposite directions will cancel each other out, resulting in no direction.
/// </summary>
/// <param name="direction">Direction to toggle.</param>
/// <param name="enabled">If the direction is active.</param>
void SetVelocityDirection(Direction direction, bool enabled);
}
}