JobPrefab

Barotrauma JobPrefab class with some additional functions and fields

Barotrauma source code: JobPrefab.cs

Functions

CreateInfoFrame(isPvP, buttonContainer)

CreateInfoFrame

Parameters

  • isPvP bool

  • buttonContainer GUIComponent&

Returns

  • GUIButton

Dispose()

Dispose

Equals(obj)

Equals

Parameters

  • obj Object

Returns

  • bool

GetHashCode()

GetHashCode

Returns

  • number

GetJobOutfitSprites(team, isPvPMode)

GetJobOutfitSprites

Parameters

  • team CharacterTeamType

  • isPvPMode bool

Returns

  • IEnumerable

GetType()

GetType

Returns

  • Type

JobPrefab(element, file)

JobPrefab

Parameters

  • element ContentXElement

  • file JobsFile

JobPrefab.Get(identifier)

Get

Parameters

Returns

JobPrefab.Random(sync, predicate)

Random

Parameters

  • sync RandSync

  • predicate function

Returns

ToString()

ToString

Returns

Fields

AllowAlways

AllowAlways, field of type bool

  • AllowAlways

AppropriateOrders

AppropriateOrders, field of type table

  • AppropriateOrders

AutonomousObjectives

AutonomousObjectives, field of type table

  • AutonomousObjectives

ContentFile

ContentFile, field of type ContentFile

  • ContentFile

ContentPackage

ContentPackage, field of type ContentPackage

  • ContentPackage

Description

Description, field of type LocalizedString

  • Description

Element

Element, field of type ContentXElement

  • Element

FilePath

FilePath, field of type ContentPath

  • FilePath

HiddenJob

HiddenJob, field of type bool

  • HiddenJob

Icon

Icon, field of type Sprite

  • Icon

IconSmall

IconSmall, field of type Sprite

  • IconSmall

Identifier

Identifier, field of type Identifier

  • Identifier

IdleBehavior

IdleBehavior, field of type BehaviorType

  • IdleBehavior

InitialCount

InitialCount, field of type number

  • InitialCount

JobItems

JobItems, field of type Collections.Immutable.ImmutableDictionary>

  • JobItems

JobPrefab.ItemRepairPriorities

JobPrefab.ItemRepairPriorities, field of type IReadOnlyDictionary

JobPrefab.Prefabs

JobPrefab.Prefabs, field of type PrefabCollection

MaxNumber

MaxNumber, field of type number

  • MaxNumber

MinKarma

MinKarma, field of type number

  • MinKarma

MinNumber

MinNumber, field of type number

  • MinNumber

Name

Name, field of type LocalizedString

  • Name

OnlyJobSpecificDialog

OnlyJobSpecificDialog, field of type bool

  • OnlyJobSpecificDialog

PriceMultiplier

PriceMultiplier, field of type number

  • PriceMultiplier

PrimarySkill

PrimarySkill, field of type SkillPrefab

  • PrimarySkill

Skills

Skills, field of type table

  • Skills

UIColor

UIColor, field of type Microsoft.Xna.Framework.Color

  • UIColor

UintIdentifier

UintIdentifier, field of type number

  • UintIdentifier

Variants

Variants, field of type number

  • Variants

VitalityModifier

VitalityModifier, field of type number

  • VitalityModifier