2024-07-21 03:32:25 -07:00
|
|
|
using Robust.Shared.Prototypes;
|
2021-02-12 04:35:56 +01:00
|
|
|
|
2024-07-21 03:32:25 -07:00
|
|
|
namespace Content.Shared.Ghost.Roles.Components
|
2021-02-12 04:35:56 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Allows a ghost to take this role, spawning a new entity.
|
|
|
|
|
/// </summary>
|
2024-06-02 16:08:15 +12:00
|
|
|
[RegisterComponent, EntityCategory("Spawner")]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class GhostRoleMobSpawnerComponent : Component
|
2021-02-12 04:35:56 +01:00
|
|
|
{
|
2024-04-26 09:06:43 -04:00
|
|
|
[DataField]
|
2023-04-12 06:32:14 -07:00
|
|
|
public bool DeleteOnSpawn = true;
|
2021-02-12 04:35:56 +01:00
|
|
|
|
2024-04-26 09:06:43 -04:00
|
|
|
[DataField]
|
2023-04-12 06:32:14 -07:00
|
|
|
public int AvailableTakeovers = 1;
|
2021-02-12 04:35:56 +01:00
|
|
|
|
|
|
|
|
[ViewVariables]
|
2023-04-12 06:32:14 -07:00
|
|
|
public int CurrentTakeovers = 0;
|
2021-02-12 04:35:56 +01:00
|
|
|
|
2024-04-26 09:06:43 -04:00
|
|
|
[DataField]
|
|
|
|
|
public EntProtoId? Prototype;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// If this ghostrole spawner has multiple selectable ghostrole prototypes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public List<string> SelectablePrototypes = [];
|
2021-02-12 04:35:56 +01:00
|
|
|
}
|
|
|
|
|
}
|