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