Class StationJobsComponent
Stores information about a station's job selection.
Inheritance
System.Object
StationJobsComponent
Namespace: Content.Server.Station.Components
Assembly: Content.Server.dll
Syntax
public sealed class StationJobsComponent : Component
Fields
| Improve this Doc View SourceExtendedAccess
Station is running on extended access.
Declaration
public bool ExtendedAccess
Field Value
Type | Description |
---|---|
System.Boolean |
JobList
The current list of jobs.
Declaration
public Dictionary<string, uint?> JobList
Field Value
Type | Description |
---|---|
Dictionary<System.String, System.Nullable<System.UInt32>> |
Remarks
This should not be mutated or used directly unless you really know what you're doing, go through StationJobsSystem.
MidRoundTotalJobs
Total mid-round jobs at station start.
Declaration
public int MidRoundTotalJobs
Field Value
Type | Description |
---|---|
System.Int32 |
OverflowJobs
Overflow jobs that round-start can spawn infinitely many of.
Declaration
public HashSet<string> OverflowJobs
Field Value
Type | Description |
---|---|
HashSet<System.String> |
RoundStartJobList
The round-start list of jobs.
Declaration
public Dictionary<string, uint?> RoundStartJobList
Field Value
Type | Description |
---|---|
Dictionary<System.String, System.Nullable<System.UInt32>> |
Remarks
This should not be mutated, ever.
RoundStartTotalJobs
Total round-start jobs at station start.
Declaration
public int RoundStartTotalJobs
Field Value
Type | Description |
---|---|
System.Int32 |
SetupAvailableJobs
Declaration
public Dictionary<string, List<int?>> SetupAvailableJobs
Field Value
Type | Description |
---|---|
Dictionary<System.String, List<System.Nullable<System.Int32>>> |
TotalJobs
Current total jobs.
Declaration
public int TotalJobs
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
| Improve this Doc View SourceExtendedAccessThreshold
If there are less than or equal this amount of players in the game at round start, people get extended access levels from job prototypes.
Declaration
public int ExtendedAccessThreshold { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Set to -1 to disable extended access.
PercentJobsRemaining
The percentage of jobs remaining.
Declaration
public float? PercentJobsRemaining { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Single> |
Remarks
Null if MidRoundTotalJobs is zero. This is a NaN free API.