RoleEvent.cs 533 B

1234567891011
  1. using Content.Shared.Mind;
  2. namespace Content.Shared.Roles;
  3. /// <summary>
  4. /// Base event raised on mind entities to indicate that a mind role was either added or removed.
  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. public abstract record RoleEvent(EntityUid MindId, MindComponent Mind, bool RoleTypeUpdate);