Files
tbd-station-14/Content.Server/GameTicking/Events/IsJobAllowedEvent.cs
DrSmugleaf 19be94c9ea Add job whitelist system (#28085)
* Add job whitelist system

* Address reviews

* Fix name

* Apply suggestions from code review

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>

* cancinium

---------

Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
2024-06-01 05:08:31 -07:00

14 lines
411 B
C#

using Content.Shared.Roles;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
namespace Content.Server.GameTicking.Events;
[ByRefEvent]
public struct IsJobAllowedEvent(ICommonSession player, ProtoId<JobPrototype> jobId, bool cancelled = false)
{
public readonly ICommonSession Player = player;
public readonly ProtoId<JobPrototype> JobId = jobId;
public bool Cancelled = cancelled;
}