1
0

StartingMindRoleComponent.cs 750 B

123456789101112131415161718192021222324252627
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Shared.Roles;
  4. /// <summary>
  5. /// This is most likely not the component you are looking for, almost nothing should be using this.
  6. /// Consider using GhostRoleComponent or AntagSelectionComponent instead.
  7. ///
  8. /// The specified mind role will be added to the mob on spawn.
  9. ///
  10. /// </summary>
  11. [RegisterComponent, NetworkedComponent]
  12. public sealed partial class StartingMindRoleComponent : Component
  13. {
  14. /// <summary>
  15. /// The ID of the mind role to add
  16. /// </summary>
  17. [DataField(required: true)]
  18. public EntProtoId MindRole;
  19. /// <summary>
  20. /// Add the mind role silently
  21. /// </summary>
  22. [DataField]
  23. public bool Silent = true;
  24. }