mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 15:47:26 +00:00
* i'm going insane from screens * some wiring * screemes * holy shit adhd lock-in * incomplete * its FUCKING DONE * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * zeta * mrrrp * test fix * fix arrivals * fix misnetwork * Fix iteration outline. Fixed all headers showing if all options where hidden. Added access requirement to keycard auth mechnism. Added countdown. Fixed ninja and fugitive. Fixed AI and aghost. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Vanessa <vanessalouwagie@gmail.com>
56 lines
1.3 KiB
C#
56 lines
1.3 KiB
C#
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared._DV.Screens;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true), AutoGenerateComponentPause]
|
|
[Access(typeof(DVSharedScreenSystem))]
|
|
public sealed partial class DVScreenComponent : Component
|
|
{
|
|
[DataField, AutoNetworkedField]
|
|
public string? AlertLevel; // I don't like this but uhhh the prototype isn't client-accessible
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool ShowAlertBorder;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public DVScreenContent Content = DVScreenContent.Text;
|
|
|
|
#region Text Screens
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public string Line1 = string.Empty;
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public string Line2 = string.Empty;
|
|
|
|
#endregion
|
|
|
|
#region ETA Screens
|
|
|
|
[DataField, AutoNetworkedField]
|
|
public bool ScreenIsAtDestination;
|
|
|
|
[DataField, AutoNetworkedField, AutoPausedField]
|
|
public TimeSpan TargetTime = TimeSpan.Zero;
|
|
|
|
#endregion
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum DVScreenVisuals : byte
|
|
{
|
|
AlertLevel,
|
|
ShowAlertBorder,
|
|
Content,
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum DVScreenContent : byte
|
|
{
|
|
Text,
|
|
CurrentTime,
|
|
EstimatedTimeOfArrival,
|
|
AlertLevel,
|
|
}
|