Files
tbd-station-14/Content.Shared/PDA/PdaUpdateState.cs
PrPleGoo 852f041581 Add auth to the mass-media console (#18345)
* process my own comments

* add fields and handling

* little cleanups

* localization

* u

* whoops
2023-07-27 14:25:55 -06:00

48 lines
1.4 KiB
C#

using Content.Shared.CartridgeLoader;
using Robust.Shared.Serialization;
namespace Content.Shared.PDA
{
[Serializable, NetSerializable]
public sealed class PdaUpdateState : CartridgeLoaderUiState
{
public bool FlashlightEnabled;
public bool HasPen;
public PdaIdInfoText PdaOwnerInfo;
public string? StationName;
public bool HasUplink;
public bool CanPlayMusic;
public bool HasNewsTab;
public string? Address;
public PdaUpdateState(bool flashlightEnabled,
bool hasPen,
PdaIdInfoText pdaOwnerInfo,
string? stationName,
bool hasUplink = false,
bool canPlayMusic = false,
bool hasNewsTab = false,
string? address = null)
{
FlashlightEnabled = flashlightEnabled;
HasPen = hasPen;
PdaOwnerInfo = pdaOwnerInfo;
HasUplink = hasUplink;
CanPlayMusic = canPlayMusic;
HasNewsTab = hasNewsTab;
StationName = stationName;
Address = address;
}
}
[Serializable, NetSerializable]
public struct PdaIdInfoText
{
public string? ActualOwnerName;
public string? IdOwner;
public string? JobTitle;
public string? StationAlertLevel;
public Color StationAlertColor;
}
}