improve spawnpoint error logging (#40021)

This commit is contained in:
slarticodefast
2025-08-31 20:50:37 +02:00
committed by GitHub
parent 8f5d05c8bb
commit 0ba5d036a2
4 changed files with 48 additions and 11 deletions

View File

@@ -6,11 +6,15 @@ 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
/// The type of spawn point.
/// </summary>
[DataField("spawn_type"), ViewVariables(VVAccess.ReadWrite)]
public SpawnPointType SpawnType { get; set; } = SpawnPointType.Unset;