47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
using System.Numerics;
|
|
using Content.Shared._NF.Shuttles.Events;
|
|
using Content.Shared.Shuttles.Components;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Server.Shuttles.Components
|
|
{
|
|
[RegisterComponent]
|
|
public sealed partial class ShuttleConsoleComponent : SharedShuttleConsoleComponent
|
|
{
|
|
[ViewVariables]
|
|
public readonly List<EntityUid> SubscribedPilots = new();
|
|
|
|
/// <summary>
|
|
/// How much should the pilot's eye be zoomed by when piloting using this console?
|
|
/// </summary>
|
|
[DataField("zoom")]
|
|
public Vector2 Zoom = new(1.5f, 1.5f);
|
|
|
|
/// <summary>
|
|
/// Should this console have access to restricted FTL destinations?
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("whitelistSpecific")]
|
|
public List<EntityUid> FTLWhitelist = new List<EntityUid>();
|
|
|
|
// Frontier: EMP-related state
|
|
/// <summary>
|
|
/// For EMP to allow keeping the shuttle off
|
|
/// </summary>
|
|
[DataField("enabled")]
|
|
public bool MainBreakerEnabled = true;
|
|
|
|
/// <summary>
|
|
/// While disabled by EMP
|
|
/// </summary>
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
public TimeSpan TimeoutFromEmp = TimeSpan.Zero;
|
|
|
|
[DataField]
|
|
public float DisableDuration = 60f;
|
|
|
|
[DataField]
|
|
public InertiaDampeningMode DampeningMode = InertiaDampeningMode.Dampen;
|
|
// End Frontier
|
|
}
|
|
}
|