* lewd * A * Realtime * Sleepy dork * Draw radar position * Accurate infiltrator * experiments * Better drawing * Labels * I need aan adult * Cleanup * Show toggles * display I guess * A * fix * fix * cleanupsies * Bit more polish * Make sure mass scanners actually work * Remove dummy state * fren * opposite * aghost crash * comment * What's in a name * woops * Show docking ports * Dock highlighting * Drawing dock * Shitty docks * Lots of docking drawing * Autodock working * dork * More graceful shutdown * zoomies * Lines and distance change * revert * Good enough * cleanup * Fix default range * Dock UI and loc update * Update on undock * Loc fixes
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using Content.Shared.Shuttles.Components;
|
|
|
|
namespace Content.Server.Shuttles.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed class ShuttleComponent : Component
|
|
{
|
|
[ViewVariables]
|
|
public bool Enabled = true;
|
|
|
|
[ViewVariables]
|
|
public ShuttleMode Mode = ShuttleMode.Cruise;
|
|
|
|
/// <summary>
|
|
/// The cached thrust available for each cardinal direction
|
|
/// </summary>
|
|
[ViewVariables]
|
|
public readonly float[] LinearThrust = new float[4];
|
|
|
|
/// <summary>
|
|
/// The thrusters contributing to each direction for impulse.
|
|
/// </summary>
|
|
public readonly List<ThrusterComponent>[] LinearThrusters = new List<ThrusterComponent>[4];
|
|
|
|
/// <summary>
|
|
/// The thrusters contributing to the angular impulse of the shuttle.
|
|
/// </summary>
|
|
public readonly List<ThrusterComponent> AngularThrusters = new List<ThrusterComponent>();
|
|
|
|
[ViewVariables]
|
|
public float AngularThrust = 0f;
|
|
|
|
/// <summary>
|
|
/// A bitmask of all the directions we are considered thrusting.
|
|
/// </summary>
|
|
[ViewVariables]
|
|
public DirectionFlag ThrustDirections = DirectionFlag.None;
|
|
}
|
|
}
|