IsJobAllowedEvent.cs 411 B

12345678910111213
  1. using Content.Shared.Roles;
  2. using Robust.Shared.Player;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Server.GameTicking.Events;
  5. [ByRefEvent]
  6. public struct IsJobAllowedEvent(ICommonSession player, ProtoId<JobPrototype> jobId, bool cancelled = false)
  7. {
  8. public readonly ICommonSession Player = player;
  9. public readonly ProtoId<JobPrototype> JobId = jobId;
  10. public bool Cancelled = cancelled;
  11. }