1
0

TryGetIdentityShortInfoEvent.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. namespace Content.Shared.IdentityManagement;
  2. /// <summary>
  3. /// Event of attempt to collect actor full title - full name + job from id card for employee or entity name for borgs.
  4. /// </summary>
  5. public sealed class TryGetIdentityShortInfoEvent(EntityUid? whileInteractingWith, EntityUid forActor, bool forLogging = false) : HandledEntityEventArgs
  6. {
  7. /// <summary>
  8. /// Full name of <see cref="ForActor"/>, with JobTitle.
  9. /// Can be null if no system could find actor name / job.
  10. /// </summary>
  11. public string? Title;
  12. /// <summary>
  13. /// Entity for interacting with which title should be collected.
  14. /// Could be used to black-out name of people when announcing actions
  15. /// on e-magged devices.
  16. /// </summary>
  17. public readonly EntityUid? WhileInteractingWith = whileInteractingWith;
  18. /// <summary>
  19. /// Actor for whom title should be collected.
  20. /// </summary>
  21. public readonly EntityUid ForActor = forActor;
  22. /// <summary>
  23. /// Marker that title info was requested for access logging.
  24. /// Is required as event handlers can determine, if they don't need
  25. /// to place title info due to access logging restrictions.
  26. /// </summary>
  27. public readonly bool RequestForAccessLogging = forLogging;
  28. }