Files
tbd-station-14/Content.Server/Spawners/Components/SpawnPointComponent.cs
2025-08-31 11:50:37 -07:00

35 lines
784 B
C#

using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Server.Spawners.Components;
[RegisterComponent]
public sealed partial class SpawnPointComponent : Component, ISpawnPoint
{
/// <summary>
/// The job this spawn point is valid for.
/// Null will allow all jobs to spawn here.
/// </summary>
[DataField("job_id")]
public ProtoId<JobPrototype>? Job;
/// <summary>
/// The type of spawn point.
/// </summary>
[DataField("spawn_type"), ViewVariables(VVAccess.ReadWrite)]
public SpawnPointType SpawnType { get; set; } = SpawnPointType.Unset;
public override string ToString()
{
return $"{Job} {SpawnType}";
}
}
public enum SpawnPointType
{
Unset = 0,
LateJoin,
Job,
Observer,
}