Show / Hide Table of Contents

Class JobPrototype

Describes information for a single job on the station.

Inheritance
System.Object
JobPrototype
Implements
Robust.Shared.Prototypes.IPrototype
Namespace: Content.Shared.Roles
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
public string? JobEntity
Field Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

Requirements

Declaration
public HashSet<JobRequirement>? Requirements
Field Value
Type Description
System.Nullable<HashSet<JobRequirement>>

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
Type Description
JobSpecial[]
| 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
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾