Co-authored-by: beck-thompson <beck314159@hotmail.com> Co-authored-by: Hannah Giovanna Dawson <karakkaraz@gmail.com>
25 lines
833 B
C#
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;
|
|
}
|