mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 14:07:53 +03:00
36 lines
924 B
C#
36 lines
924 B
C#
using Content.Shared.Eui;
|
|
using Content.Shared.Roles;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Administration;
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed class JobWhitelistsEuiState : EuiStateBase
|
|
{
|
|
public string PlayerName;
|
|
public HashSet<ProtoId<JobPrototype>> Whitelists;
|
|
|
|
public JobWhitelistsEuiState(string playerName, HashSet<ProtoId<JobPrototype>> whitelists)
|
|
{
|
|
PlayerName = playerName;
|
|
Whitelists = whitelists;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Tries to add or remove a whitelist of a job for a player.
|
|
/// </summary>
|
|
[Serializable, NetSerializable]
|
|
public sealed class SetJobWhitelistedMessage : EuiMessageBase
|
|
{
|
|
public ProtoId<JobPrototype> Job;
|
|
public bool Whitelisting;
|
|
|
|
public SetJobWhitelistedMessage(ProtoId<JobPrototype> job, bool whitelisting)
|
|
{
|
|
Job = job;
|
|
Whitelisting = whitelisting;
|
|
}
|
|
}
|