Files
OldThink/Content.Server/Shuttles/Components/ShuttleConsoleComponent.cs

31 lines
1007 B
C#
Raw Normal View History

using System.Collections.Generic;
using Content.Shared.Shuttles;
2021-11-21 17:09:49 +11:00
using Content.Shared.Shuttles.Components;
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
2021-11-21 17:09:49 +11:00
namespace Content.Server.Shuttles.Components
{
[RegisterComponent]
[ComponentReference(typeof(SharedShuttleConsoleComponent))]
internal sealed class ShuttleConsoleComponent : SharedShuttleConsoleComponent
{
[ViewVariables]
public List<PilotComponent> SubscribedPilots = new();
/// <summary>
/// Whether the console can be used to pilot. Toggled whenever it gets powered / unpowered.
/// </summary>
[ViewVariables]
public bool Enabled { get; set; } = false;
/// <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);
}
}