using Robust.Shared.Map.Components;
using Robust.Shared.Prototypes;
using Content.Shared.Station.Components;
+using FastAccessors;
using Robust.Shared.Utility;
using YamlDotNet.RepresentationModel;
.Select(x => x.Job!.Value);
jobs.ExceptWith(spawnPoints);
+
+ spawnPoints = entManager.EntityQuery<ContainerSpawnPointComponent>()
+ .Where(x => x.SpawnType == SpawnPointType.Job)
+ .Select(x => x.Job!.Value);
+
+ jobs.ExceptWith(spawnPoints);
+
Assert.That(jobs, Is.Empty, $"There is no spawnpoints for {string.Join(", ", jobs)} on {mapProto}.");
}
using Content.Server.Spawners.EntitySystems;
+using Content.Shared.Roles;
+using Robust.Shared.Prototypes;
namespace Content.Server.Spawners.Components;
/// An optional job specifier
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
- public string? Job;
+ public ProtoId<JobPrototype>? Job;
/// <summary>
/// The type of spawn point