Files
tbd-station-14/Content.Server/GameTicking/Events/IsRoleAllowedEvent.cs
Errant b692b6e33e Antag Rolebans (#35966)
Co-authored-by: beck-thompson <beck314159@hotmail.com>
Co-authored-by: Hannah Giovanna Dawson <karakkaraz@gmail.com>
2025-09-17 23:59:07 +02:00

25 lines
833 B
C#

using Content.Shared.Roles;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
namespace Content.Server.GameTicking.Events;
/// <summary>
/// Event raised to check if a player is allowed/able to assume a role.
/// </summary>
/// <param name="player">The player.</param>
/// <param name="jobs">Optional list of job prototype IDs</param>
/// <param name="antags">Optional list of antag prototype IDs</param>
[ByRefEvent]
public struct IsRoleAllowedEvent(
ICommonSession player,
List<ProtoId<JobPrototype>>? jobs,
List<ProtoId<AntagPrototype>>? antags,
bool cancelled = false)
{
public readonly ICommonSession Player = player;
public readonly List<ProtoId<JobPrototype>>? Jobs = jobs;
public readonly List<ProtoId<AntagPrototype>>? Antags = antags;
public bool Cancelled = cancelled;
}