2020-08-13 14:40:27 +02:00
|
|
|
using Content.Shared.Roles;
|
2020-01-23 17:31:47 +01:00
|
|
|
using Robust.Shared.Prototypes;
|
2019-03-17 15:52:27 +01:00
|
|
|
|
2023-04-08 16:52:52 -07:00
|
|
|
namespace Content.Server.Spawners.Components;
|
|
|
|
|
|
|
|
|
|
[RegisterComponent]
|
2024-02-25 17:54:44 +04:00
|
|
|
public sealed partial class SpawnPointComponent : Component, ISpawnPoint
|
2019-03-17 15:52:27 +01:00
|
|
|
{
|
2023-04-08 16:52:52 -07:00
|
|
|
[DataField("job_id")]
|
2024-06-06 02:19:24 +12:00
|
|
|
public ProtoId<JobPrototype>? Job;
|
2021-03-16 15:50:20 +01:00
|
|
|
|
2024-02-25 17:54:44 +04:00
|
|
|
/// <summary>
|
|
|
|
|
/// The type of spawn point
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("spawn_type"), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public SpawnPointType SpawnType { get; set; } = SpawnPointType.Unset;
|
2021-03-16 15:50:20 +01:00
|
|
|
|
2023-08-22 22:46:50 +12:00
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2024-06-06 02:19:24 +12:00
|
|
|
return $"{Job} {SpawnType}";
|
2023-08-22 22:46:50 +12:00
|
|
|
}
|
2023-04-08 16:52:52 -07:00
|
|
|
}
|
2019-03-17 15:52:27 +01:00
|
|
|
|
2023-04-08 16:52:52 -07:00
|
|
|
public enum SpawnPointType
|
|
|
|
|
{
|
|
|
|
|
Unset = 0,
|
|
|
|
|
LateJoin,
|
|
|
|
|
Job,
|
|
|
|
|
Observer,
|
2019-03-17 15:52:27 +01:00
|
|
|
}
|