2022-11-08 21:00:20 +01:00
|
|
|
using Content.Shared.CartridgeLoader;
|
2021-10-03 07:05:52 +03:00
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.PDA
|
|
|
|
|
{
|
|
|
|
|
[Serializable, NetSerializable]
|
2023-06-15 03:44:28 +02:00
|
|
|
public sealed class PdaUpdateState : CartridgeLoaderUiState
|
2021-10-03 07:05:52 +03:00
|
|
|
{
|
|
|
|
|
public bool FlashlightEnabled;
|
|
|
|
|
public bool HasPen;
|
2023-06-15 03:44:28 +02:00
|
|
|
public PdaIdInfoText PdaOwnerInfo;
|
2022-07-23 18:58:28 -07:00
|
|
|
public string? StationName;
|
2021-10-03 07:05:52 +03:00
|
|
|
public bool HasUplink;
|
2022-03-07 14:41:50 +03:00
|
|
|
public bool CanPlayMusic;
|
2022-11-08 21:00:20 +01:00
|
|
|
public string? Address;
|
2021-10-03 07:05:52 +03:00
|
|
|
|
2023-07-28 22:59:03 +03:00
|
|
|
public PdaUpdateState(bool flashlightEnabled, bool hasPen, PdaIdInfoText pdaOwnerInfo,
|
|
|
|
|
string? stationName, bool hasUplink = false,
|
|
|
|
|
bool canPlayMusic = false, string? address = null)
|
2021-10-03 07:05:52 +03:00
|
|
|
{
|
|
|
|
|
FlashlightEnabled = flashlightEnabled;
|
|
|
|
|
HasPen = hasPen;
|
2023-06-15 03:44:28 +02:00
|
|
|
PdaOwnerInfo = pdaOwnerInfo;
|
2021-10-03 07:05:52 +03:00
|
|
|
HasUplink = hasUplink;
|
2022-03-07 14:41:50 +03:00
|
|
|
CanPlayMusic = canPlayMusic;
|
2022-07-23 18:58:28 -07:00
|
|
|
StationName = stationName;
|
2022-11-08 21:00:20 +01:00
|
|
|
Address = address;
|
2021-10-03 07:05:52 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
2023-06-15 03:44:28 +02:00
|
|
|
public struct PdaIdInfoText
|
2021-10-03 07:05:52 +03:00
|
|
|
{
|
|
|
|
|
public string? ActualOwnerName;
|
|
|
|
|
public string? IdOwner;
|
|
|
|
|
public string? JobTitle;
|
2023-05-17 23:35:40 +03:00
|
|
|
public string? StationAlertLevel;
|
|
|
|
|
public Color StationAlertColor;
|
2021-10-03 07:05:52 +03:00
|
|
|
}
|
|
|
|
|
}
|