Files
tbd-station-14/Content.Shared/Administration/PlayerPanelEuiState.cs
Errant 0c6e21dec2 PlayerPanel Follow button (#36466)
* Follow button

* remove event stuff
2025-04-12 22:00:46 +02:00

58 lines
1.6 KiB
C#

using Content.Shared.Eui;
using Robust.Shared.Network;
using Robust.Shared.Serialization;
namespace Content.Shared.Administration;
[Serializable, NetSerializable]
public sealed class PlayerPanelEuiState(
NetUserId guid,
string username,
TimeSpan playtime,
int? totalNotes,
int? totalBans,
int? totalRoleBans,
int sharedConnections,
bool? whitelisted,
bool canFreeze,
bool frozen,
bool canAhelp)
: EuiStateBase
{
public readonly NetUserId Guid = guid;
public readonly string Username = username;
public readonly TimeSpan Playtime = playtime;
public readonly int? TotalNotes = totalNotes;
public readonly int? TotalBans = totalBans;
public readonly int? TotalRoleBans = totalRoleBans;
public readonly int SharedConnections = sharedConnections;
public readonly bool? Whitelisted = whitelisted;
public readonly bool CanFreeze = canFreeze;
public readonly bool Frozen = frozen;
public readonly bool CanAhelp = canAhelp;
}
[Serializable, NetSerializable]
public sealed class PlayerPanelFreezeMessage : EuiMessageBase
{
public readonly bool Mute;
public PlayerPanelFreezeMessage(bool mute = false)
{
Mute = mute;
}
}
[Serializable, NetSerializable]
public sealed class PlayerPanelLogsMessage : EuiMessageBase;
[Serializable, NetSerializable]
public sealed class PlayerPanelDeleteMessage : EuiMessageBase;
[Serializable, NetSerializable]
public sealed class PlayerPanelRejuvenationMessage: EuiMessageBase;
[Serializable, NetSerializable]
public sealed class PlayerPanelFollowMessage: EuiMessageBase;