RoleAddedEvent.cs 664 B

123456789101112
  1. using Content.Shared.Mind;
  2. namespace Content.Shared.Roles;
  3. /// <summary>
  4. /// Raised on mind entities when a mind role is added to them.
  5. /// </summary>
  6. /// <param name="MindId">The mind id associated with the player.</param>
  7. /// <param name="Mind">The mind component associated with the mind id.</param>
  8. /// <param name="RoleTypeUpdate">True if this update has changed the mind's role type</param>
  9. /// <param name="Silent">If true, Job greeting/intro will not be sent to the player's chat</param>
  10. public sealed record RoleAddedEvent(EntityUid MindId, MindComponent Mind, bool RoleTypeUpdate, bool Silent = false) : RoleEvent(MindId, Mind, RoleTypeUpdate);