Files
wwdpublic/Content.Server/DeltaV/Ghost/Roles/Components/GhostRoleCharacterSpawnerComponent.cs
2023-09-30 01:24:40 +02:00

23 lines
762 B
C#

namespace Content.Server.Ghost.Roles.Components
{
/// <summary>
/// Allows a ghost to take this role, spawning their selected character.
/// </summary>
[RegisterComponent]
[Access(typeof(GhostRoleSystem))]
public sealed partial class GhostRoleCharacterSpawnerComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)] [DataField("deleteOnSpawn")]
public bool DeleteOnSpawn = true;
[ViewVariables(VVAccess.ReadWrite)] [DataField("availableTakeovers")]
public int AvailableTakeovers = 1;
[ViewVariables]
public int CurrentTakeovers = 0;
[ViewVariables(VVAccess.ReadWrite)] [DataField("outfitPrototype")]
public string OutfitPrototype = "PassengerGear";
}
}