GhostRoleMobSpawnerComponent.cs 787 B

1234567891011121314151617181920212223242526272829
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Shared.Ghost.Roles.Components
  3. {
  4. /// <summary>
  5. /// Allows a ghost to take this role, spawning a new entity.
  6. /// </summary>
  7. [RegisterComponent, EntityCategory("Spawner")]
  8. public sealed partial class GhostRoleMobSpawnerComponent : Component
  9. {
  10. [DataField]
  11. public bool DeleteOnSpawn = true;
  12. [DataField]
  13. public int AvailableTakeovers = 1;
  14. [ViewVariables]
  15. public int CurrentTakeovers = 0;
  16. [DataField]
  17. public EntProtoId? Prototype;
  18. /// <summary>
  19. /// If this ghostrole spawner has multiple selectable ghostrole prototypes.
  20. /// </summary>
  21. [DataField]
  22. public List<string> SelectablePrototypes = [];
  23. }
  24. }