Files
wwdpublic/Content.Shared/PDA/PdaUpdateState.cs
Kutosss d290f7a55e [ADD] "Паспорт в ПДА" (#423)
* [ADD] "Паспорт в ПДА"

* Apply suggestions from code reviegfdw

gfd

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Create pda-component.ftl

* Create pda-component.ftl

* Update pda-component.ftl

* Update pda-component.ftl

* Apply suggestions from code review

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>

* Update pda.yml

* фикс йопт

---------

Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>
2025-04-07 21:34:56 +03:00

57 lines
1.7 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 bool HasPassport; // WD EDIT
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,
bool hasPassport, // WD EDIT
PdaIdInfoText pdaOwnerInfo,
string? stationName,
bool hasUplink = false,
bool canPlayMusic = false,
string? address = null)
: base(programs, activeUI)
{
FlashlightEnabled = flashlightEnabled;
HasPen = hasPen;
HasPai = hasPai;
HasPassport = hasPassport; // WD EDIT
PdaOwnerInfo = pdaOwnerInfo;
HasUplink = hasUplink;
CanPlayMusic = canPlayMusic;
StationName = stationName;
Address = address;
}
}
[Serializable, NetSerializable]
public struct PdaIdInfoText
{
public string? ActualOwnerName;
public string? IdOwner;
public string? JobTitle;
public string? StationAlertLevel;
public Color StationAlertColor;
}
}