Show / Hide Table of Contents

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 Source

ExtendedAccess

Station is running on extended access.

Declaration
public bool ExtendedAccess
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

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.

| Improve this Doc View Source

MidRoundTotalJobs

Total mid-round jobs at station start.

Declaration
public int MidRoundTotalJobs
Field Value
Type Description
System.Int32
| Improve this Doc View Source

OverflowJobs

Overflow jobs that round-start can spawn infinitely many of.

Declaration
public HashSet<string> OverflowJobs
Field Value
Type Description
HashSet<System.String>
| Improve this Doc View Source

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.

| Improve this Doc View Source

RoundStartTotalJobs

Total round-start jobs at station start.

Declaration
public int RoundStartTotalJobs
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SetupAvailableJobs

Declaration
public Dictionary<string, List<int?>> SetupAvailableJobs
Field Value
Type Description
Dictionary<System.String, List<System.Nullable<System.Int32>>>
| Improve this Doc View Source

TotalJobs

Current total jobs.

Declaration
public int TotalJobs
Field Value
Type Description
System.Int32

Properties

| Improve this Doc View Source

ExtendedAccessThreshold

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾