Files
tbd-station-14/Content.Server/Spawners/Components/SpawnPointComponent.cs
Leon Friedrich adeed705e6 Add Job preference tests (#28625)
* Misc Job related changes

* Add JobTest

* A

* Aa

* Lets not confuse the yaml linter

* fixes

* a
2024-06-06 00:19:24 +10:00

31 lines
651 B
C#

using Content.Shared.Roles;
using Robust.Shared.Prototypes;
namespace Content.Server.Spawners.Components;
[RegisterComponent]
public sealed partial class SpawnPointComponent : Component, ISpawnPoint
{
[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,
}