1
0

PdaUpdateState.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Content.Shared.CartridgeLoader;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.PDA
  4. {
  5. [Serializable, NetSerializable]
  6. public sealed class PdaUpdateState : CartridgeLoaderUiState // WTF is this. what. I ... fuck me I just want net entities to work
  7. // TODO purge this shit
  8. //AAAAAAAAAAAAAAAA
  9. {
  10. public bool FlashlightEnabled;
  11. public bool HasPen;
  12. public bool HasPai;
  13. public PdaIdInfoText PdaOwnerInfo;
  14. public string? StationName;
  15. public bool HasUplink;
  16. public bool CanPlayMusic;
  17. public string? Address;
  18. public PdaUpdateState(
  19. List<NetEntity> programs,
  20. NetEntity? activeUI,
  21. bool flashlightEnabled,
  22. bool hasPen,
  23. bool hasPai,
  24. PdaIdInfoText pdaOwnerInfo,
  25. string? stationName,
  26. bool hasUplink = false,
  27. bool canPlayMusic = false,
  28. string? address = null)
  29. : base(programs, activeUI)
  30. {
  31. FlashlightEnabled = flashlightEnabled;
  32. HasPen = hasPen;
  33. HasPai = hasPai;
  34. PdaOwnerInfo = pdaOwnerInfo;
  35. HasUplink = hasUplink;
  36. CanPlayMusic = canPlayMusic;
  37. StationName = stationName;
  38. Address = address;
  39. }
  40. }
  41. [Serializable, NetSerializable]
  42. public struct PdaIdInfoText
  43. {
  44. public string? ActualOwnerName;
  45. public string? IdOwner;
  46. public string? JobTitle;
  47. public string? StationAlertLevel;
  48. public Color StationAlertColor;
  49. }
  50. }