Barotrauma Client Doc
Barotrauma.Job Class Reference

Public Member Functions

 Job (JobPrefab jobPrefab)
 
 Job (JobPrefab jobPrefab, Rand.RandSync randSync, int variant, params Skill[] s)
 
 Job (ContentXElement element)
 
IEnumerable< SkillGetSkills ()
 
float GetSkillLevel (Identifier skillIdentifier)
 
Skill GetSkill (Identifier skillIdentifier)
 
void OverrideSkills (Dictionary< Identifier, float > newSkills)
 
void IncreaseSkillLevel (Identifier skillIdentifier, float increase, bool increasePastMax)
 
void GiveJobItems (Character character, WayPoint spawnPoint=null)
 
XElement Save (XElement parentElement)
 

Static Public Member Functions

static Job Random (Rand.RandSync randSync)
 

Public Attributes

int Variant
 

Properties

LocalizedString Name [get]
 
LocalizedString Description [get]
 
JobPrefab Prefab [get]
 
Skill PrimarySkill [get]
 

Detailed Description

Definition at line 8 of file Job.cs.

Constructor & Destructor Documentation

◆ Job() [1/3]

Barotrauma.Job.Job ( JobPrefab  jobPrefab)

Definition at line 24 of file Job.cs.

◆ Job() [2/3]

Barotrauma.Job.Job ( JobPrefab  jobPrefab,
Rand.RandSync  randSync,
int  variant,
params Skill[]  s 
)

Definition at line 26 of file Job.cs.

◆ Job() [3/3]

Barotrauma.Job.Job ( ContentXElement  element)

Definition at line 50 of file Job.cs.

Member Function Documentation

◆ GetSkill()

Skill Barotrauma.Job.GetSkill ( Identifier  skillIdentifier)

Definition at line 96 of file Job.cs.

◆ GetSkillLevel()

float Barotrauma.Job.GetSkillLevel ( Identifier  skillIdentifier)

Definition at line 89 of file Job.cs.

◆ GetSkills()

IEnumerable<Skill> Barotrauma.Job.GetSkills ( )

Definition at line 84 of file Job.cs.

◆ GiveJobItems()

void Barotrauma.Job.GiveJobItems ( Character  character,
WayPoint  spawnPoint = null 
)

Definition at line 131 of file Job.cs.

◆ IncreaseSkillLevel()

void Barotrauma.Job.IncreaseSkillLevel ( Identifier  skillIdentifier,
float  increase,
bool  increasePastMax 
)

Definition at line 117 of file Job.cs.

◆ OverrideSkills()

void Barotrauma.Job.OverrideSkills ( Dictionary< Identifier, float >  newSkills)

Definition at line 103 of file Job.cs.

◆ Random()

static Job Barotrauma.Job.Random ( Rand.RandSync  randSync)
static

Definition at line 77 of file Job.cs.

◆ Save()

XElement Barotrauma.Job.Save ( XElement  parentElement)

Definition at line 240 of file Job.cs.

Member Data Documentation

◆ Variant

int Barotrauma.Job.Variant

Definition at line 20 of file Job.cs.

Property Documentation

◆ Description

LocalizedString Barotrauma.Job.Description
get

Definition at line 16 of file Job.cs.

◆ Name

LocalizedString Barotrauma.Job.Name
get

Definition at line 14 of file Job.cs.

◆ Prefab

JobPrefab Barotrauma.Job.Prefab
get

Definition at line 18 of file Job.cs.

◆ PrimarySkill

Skill Barotrauma.Job.PrimarySkill
get

Definition at line 22 of file Job.cs.