Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.LocationTypeChange Class Reference

Classes

class  Requirement
 

Public Member Functions

IReadOnlyList< string > GetMessages (Faction faction)
 
 LocationTypeChange (Identifier currentType, ContentXElement element, bool requireChangeMessages, float defaultProbability=0.0f)
 
float DetermineProbability (Location location)
 

Public Attributes

readonly Identifier CurrentType
 
readonly Identifier ChangeToType
 
readonly float Probability
 Base probability per turn for the location to change if near one of the RequiredLocations.
 
readonly bool RequireDiscovered
 
List< RequirementRequirements = new List<Requirement>()
 
readonly ImmutableArray< Identifier > DisallowedAdjacentLocations
 The change can't happen if there's one or more of the given types of locations near this one.
 
readonly int DisallowedProximity
 How close the location needs to be to one of the DisallowedAdjacentLocations for the change to be disabled.
 
readonly int CooldownAfterChange
 The location can't change it's type for this many turns after this location type changes occurs.
 
readonly Point RequiredDurationRange
 

Constructor & Destructor Documentation

◆ LocationTypeChange()

Barotrauma.LocationTypeChange.LocationTypeChange ( Identifier currentType,
ContentXElement element,
bool requireChangeMessages,
float defaultProbability = 0::0f )

Member Function Documentation

◆ DetermineProbability()

float Barotrauma.LocationTypeChange.DetermineProbability ( Location location)

◆ GetMessages()

IReadOnlyList< string > Barotrauma.LocationTypeChange.GetMessages ( Faction faction)

Member Data Documentation

◆ ChangeToType

readonly Identifier Barotrauma.LocationTypeChange.ChangeToType

◆ CooldownAfterChange

readonly int Barotrauma.LocationTypeChange.CooldownAfterChange

The location can't change it's type for this many turns after this location type changes occurs.

◆ CurrentType

readonly Identifier Barotrauma.LocationTypeChange.CurrentType

◆ DisallowedAdjacentLocations

readonly ImmutableArray<Identifier> Barotrauma.LocationTypeChange.DisallowedAdjacentLocations

The change can't happen if there's one or more of the given types of locations near this one.

◆ DisallowedProximity

readonly int Barotrauma.LocationTypeChange.DisallowedProximity

How close the location needs to be to one of the DisallowedAdjacentLocations for the change to be disabled.

◆ Probability

readonly float Barotrauma.LocationTypeChange.Probability

Base probability per turn for the location to change if near one of the RequiredLocations.

◆ RequiredDurationRange

readonly Point Barotrauma.LocationTypeChange.RequiredDurationRange

◆ RequireDiscovered

readonly bool Barotrauma.LocationTypeChange.RequireDiscovered

◆ Requirements

List<Requirement> Barotrauma.LocationTypeChange.Requirements = new List<Requirement>()

The documentation for this class was generated from the following file: