* Content changes for entity categories PR * Poke tests * Why are tests suddenly working?
31 lines
828 B
C#
31 lines
828 B
C#
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Ghost.Roles.Components
|
|
{
|
|
/// <summary>
|
|
/// Allows a ghost to take this role, spawning a new entity.
|
|
/// </summary>
|
|
[RegisterComponent, EntityCategory("Spawner")]
|
|
[Access(typeof(GhostRoleSystem))]
|
|
public sealed partial class GhostRoleMobSpawnerComponent : Component
|
|
{
|
|
[DataField]
|
|
public bool DeleteOnSpawn = true;
|
|
|
|
[DataField]
|
|
public int AvailableTakeovers = 1;
|
|
|
|
[ViewVariables]
|
|
public int CurrentTakeovers = 0;
|
|
|
|
[DataField]
|
|
public EntProtoId? Prototype;
|
|
|
|
/// <summary>
|
|
/// If this ghostrole spawner has multiple selectable ghostrole prototypes.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<string> SelectablePrototypes = [];
|
|
}
|
|
}
|