using Content.Shared.Roles; using Robust.Shared.Prototypes; namespace Content.Server.Ghost.Roles.Components { /// /// Allows a ghost to take this role, spawning their selected character. /// [RegisterComponent] [Access(typeof(GhostRoleSystem))] public sealed partial class GhostRoleCharacterSpawnerComponent : Component { [DataField] public bool DeleteOnSpawn = true; [DataField] public int AvailableTakeovers = 1; [ViewVariables] public int CurrentTakeovers = 0; [DataField] public ProtoId OutfitPrototype = "PassengerGear"; /// /// Components to give on spawn. /// [DataField] public ComponentRegistry AddedComponents = new(); } }