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-09-11 09:42:41 +10:00
|
|
|
public sealed class PdaUpdateState : CartridgeLoaderUiState // WTF is this. what. I ... fuck me I just want net entities to work
|
|
|
|
|
// TODO purge this shit
|
|
|
|
|
//AAAAAAAAAAAAAAAA
|
2021-10-03 07:05:52 +03:00
|
|
|
{
|
|
|
|
|
public bool FlashlightEnabled;
|
|
|
|
|
public bool HasPen;
|
2024-01-04 07:56:14 -05:00
|
|
|
public bool HasPai;
|
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-09-11 09:42:41 +10:00
|
|
|
public PdaUpdateState(
|
|
|
|
|
List<NetEntity> programs,
|
|
|
|
|
NetEntity? activeUI,
|
|
|
|
|
bool flashlightEnabled,
|
|
|
|
|
bool hasPen,
|
2024-01-04 07:56:14 -05:00
|
|
|
bool hasPai,
|
2023-09-11 09:42:41 +10:00
|
|
|
PdaIdInfoText pdaOwnerInfo,
|
|
|
|
|
string? stationName,
|
|
|
|
|
bool hasUplink = false,
|
|
|
|
|
bool canPlayMusic = false,
|
|
|
|
|
string? address = null)
|
|
|
|
|
: base(programs, activeUI)
|
2021-10-03 07:05:52 +03:00
|
|
|
{
|
|
|
|
|
FlashlightEnabled = flashlightEnabled;
|
|
|
|
|
HasPen = hasPen;
|
2024-01-04 07:56:14 -05:00
|
|
|
HasPai = hasPai;
|
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
|
|
|
}
|
|
|
|
|
}
|