Class JobPrototype
Describes information for a single job on the station.
Inheritance
System.Object
JobPrototype
Implements
Robust.Shared.Prototypes.IPrototype
Assembly: Content.Shared.dll
Syntax
public sealed class JobPrototype : object, IPrototype
Fields
|
Improve this Doc
View Source
AntagAdvantage
A numerical score for how much easier this job is for antagonists.
For traitors, reduces starting TC by this amount. Other gamemodes can use it for whatever they find fitting.
Declaration
public int AntagAdvantage
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
JobEntity
Use this to spawn in as a non-humanoid (borg, test subject, etc.)
Starting gear will be ignored.
If you want to just add special attributes to a humanoid, use AddComponentSpecial instead.
Declaration
Field Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
Requirements
Declaration
public HashSet<JobRequirement>? Requirements
Field Value
Properties
|
Improve this Doc
View Source
Access
Declaration
public IReadOnlyCollection<string> Access { get; }
Property Value
Type |
Description |
IReadOnlyCollection<System.String> |
|
|
Improve this Doc
View Source
AccessGroups
Declaration
public IReadOnlyCollection<string> AccessGroups { get; }
Property Value
Type |
Description |
IReadOnlyCollection<System.String> |
|
|
Improve this Doc
View Source
CanBeAntag
Declaration
public bool CanBeAntag { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Description
The name of this job as displayed to players.
Declaration
public string? Description { get; }
Property Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
ExtendedAccess
Declaration
public IReadOnlyCollection<string> ExtendedAccess { get; }
Property Value
Type |
Description |
IReadOnlyCollection<System.String> |
|
|
Improve this Doc
View Source
ExtendedAccessGroups
Declaration
public IReadOnlyCollection<string> ExtendedAccessGroups { get; }
Property Value
Type |
Description |
IReadOnlyCollection<System.String> |
|
|
Improve this Doc
View Source
Icon
Declaration
public string Icon { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ID
Declaration
public string ID { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
JoinNotifyCrew
Declaration
public bool JoinNotifyCrew { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LocalizedDescription
Declaration
public string? LocalizedDescription { get; }
Property Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
LocalizedName
Declaration
public string LocalizedName { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Name
The name of this job as displayed to players.
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
PlayTimeTracker
Declaration
public string PlayTimeTracker { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
RequireAdminNotify
Declaration
public bool RequireAdminNotify { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetPreference
Declaration
public bool SetPreference { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Special
Declaration
public JobSpecial[] Special { get; }
Property Value
|
Improve this Doc
View Source
StartingGear
Declaration
public string? StartingGear { get; }
Property Value
Type |
Description |
System.Nullable<System.String> |
|
|
Improve this Doc
View Source
Supervisors
Declaration
public string Supervisors { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Weight
Whether this job is a head.
The job system will try to pick heads before other jobs on the same priority level.
Declaration
public int Weight { get; }
Property Value
Type |
Description |
System.Int32 |
|
Implements
Robust.Shared.Prototypes.IPrototype