Add Job preference tests (#28625)
* Misc Job related changes * Add JobTest * A * Aa * Lets not confuse the yaml linter * fixes * a
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Content.Shared.Roles;
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Replays;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Serialization.Markdown.Mapping;
|
||||
@@ -128,19 +129,17 @@ namespace Content.Shared.GameTicking
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class TickerJobsAvailableEvent : EntityEventArgs
|
||||
public sealed class TickerJobsAvailableEvent(
|
||||
Dictionary<NetEntity, string> stationNames,
|
||||
Dictionary<NetEntity, Dictionary<ProtoId<JobPrototype>, int?>> jobsAvailableByStation)
|
||||
: EntityEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// The Status of the Player in the lobby (ready, observer, ...)
|
||||
/// </summary>
|
||||
public Dictionary<NetEntity, Dictionary<string, uint?>> JobsAvailableByStation { get; }
|
||||
public Dictionary<NetEntity, string> StationNames { get; }
|
||||
public Dictionary<NetEntity, Dictionary<ProtoId<JobPrototype>, int?>> JobsAvailableByStation { get; } = jobsAvailableByStation;
|
||||
|
||||
public TickerJobsAvailableEvent(Dictionary<NetEntity, string> stationNames, Dictionary<NetEntity, Dictionary<string, uint?>> jobsAvailableByStation)
|
||||
{
|
||||
StationNames = stationNames;
|
||||
JobsAvailableByStation = jobsAvailableByStation;
|
||||
}
|
||||
public Dictionary<NetEntity, string> StationNames { get; } = stationNames;
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable, DataDefinition]
|
||||
|
||||
Reference in New Issue
Block a user