2023-04-12 06:32:14 -07:00
|
|
|
|
using Robust.Shared.Prototypes;
|
2021-02-12 04:35:56 +01:00
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Server.Ghost.Roles.Components
|
2021-02-12 04:35:56 +01:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Allows a ghost to take this role, spawning a new entity.
|
|
|
|
|
|
/// </summary>
|
2023-04-12 06:32:14 -07:00
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
[Access(typeof(GhostRoleSystem))]
|
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
|
|
|
|
}
|
|
|
|
|
|
}
|