Files
OldThink/Content.Shared/PDA/PdaUpdateState.cs
Spatison d023d29e54 Сообщения в ПДА (#564)
* add: Сообщения в ПДА

* Search bar and colors in messages on the PDA
2024-08-06 16:58:30 +03:00

55 lines
1.6 KiB
C#

using Content.Shared.CartridgeLoader;
using Robust.Shared.Serialization;
namespace Content.Shared.PDA
{
[Serializable, NetSerializable]
public sealed class PdaUpdateState : CartridgeLoaderUiState // WTF is this. what. I ... fuck me I just want net entities to work
// TODO purge this shit
//AAAAAAAAAAAAAAAA
{
public bool FlashlightEnabled;
public bool HasPen;
public bool HasPai;
public PdaIdInfoText PdaOwnerInfo;
public string? StationName;
public bool HasUplink;
public bool CanPlayMusic;
public string? Address;
public PdaUpdateState(
List<NetEntity> programs,
NetEntity? activeUI,
bool flashlightEnabled,
bool hasPen,
bool hasPai,
PdaIdInfoText pdaOwnerInfo,
string? stationName,
bool hasUplink = false,
bool canPlayMusic = false,
string? address = null)
: base(programs, activeUI)
{
FlashlightEnabled = flashlightEnabled;
HasPen = hasPen;
HasPai = hasPai;
PdaOwnerInfo = pdaOwnerInfo;
HasUplink = hasUplink;
CanPlayMusic = canPlayMusic;
StationName = stationName;
Address = address;
}
}
[Serializable, NetSerializable]
public struct PdaIdInfoText
{
public string? ActualOwnerName;
public string? ActualOwnerJob; // WD EDIT
public string? IdOwner;
public string? JobTitle;
public string? StationAlertLevel;
public Color StationAlertColor;
}
}