PlayerPanelEuiState.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using Content.Shared.Eui;
  2. using Robust.Shared.Network;
  3. using Robust.Shared.Serialization;
  4. using YamlDotNet.Serialization.Callbacks;
  5. namespace Content.Shared.Administration;
  6. [Serializable, NetSerializable]
  7. public sealed class PlayerPanelEuiState(NetUserId guid,
  8. string username,
  9. TimeSpan playtime,
  10. int? totalNotes,
  11. int? totalBans,
  12. int? totalRoleBans,
  13. int sharedConnections,
  14. bool? whitelisted,
  15. bool canFreeze,
  16. bool frozen,
  17. bool canAhelp)
  18. : EuiStateBase
  19. {
  20. public readonly NetUserId Guid = guid;
  21. public readonly string Username = username;
  22. public readonly TimeSpan Playtime = playtime;
  23. public readonly int? TotalNotes = totalNotes;
  24. public readonly int? TotalBans = totalBans;
  25. public readonly int? TotalRoleBans = totalRoleBans;
  26. public readonly int SharedConnections = sharedConnections;
  27. public readonly bool? Whitelisted = whitelisted;
  28. public readonly bool CanFreeze = canFreeze;
  29. public readonly bool Frozen = frozen;
  30. public readonly bool CanAhelp = canAhelp;
  31. }
  32. [Serializable, NetSerializable]
  33. public sealed class PlayerPanelFreezeMessage : EuiMessageBase
  34. {
  35. public readonly bool Mute;
  36. public PlayerPanelFreezeMessage(bool mute = false)
  37. {
  38. Mute = mute;
  39. }
  40. }
  41. [Serializable, NetSerializable]
  42. public sealed class PlayerPanelLogsMessage : EuiMessageBase;
  43. [Serializable, NetSerializable]
  44. public sealed class PlayerPanelDeleteMessage : EuiMessageBase;
  45. [Serializable, NetSerializable]
  46. public sealed class PlayerPanelRejuvenationMessage: EuiMessageBase;