Files
tbd-station-14/Content.Shared/PDA/PdaUpdateState.cs
VMSolidus 84a2356831 Adding PAI Slot to PDA (#21086)
* Adding PAI Slot to PDA

* Update PdaComponent.cs

* Update pda.yml

* Update tags.yml

Sorting it alphabetically

* Adding PDA UI Elements.

* Addressing reviews

* Update PdaComponent.cs

* Update Content.Shared/PDA/SharedPdaSystem.cs

Co-authored-by: faint <46868845+ficcialfaint@users.noreply.github.com>

* Update Content.Shared/PDA/SharedPdaSystem.cs

Co-authored-by: faint <46868845+ficcialfaint@users.noreply.github.com>

* Update Resources/Prototypes/Entities/Objects/Devices/pda.yml

Co-authored-by: faint <46868845+ficcialfaint@users.noreply.github.com>

* Update PdaComponent.cs

* Update PdaComponent.cs

---------

Co-authored-by: faint <46868845+ficcialfaint@users.noreply.github.com>
2024-01-04 05:56:14 -07:00

54 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? IdOwner;
public string? JobTitle;
public string? StationAlertLevel;
public Color StationAlertColor;
}
}