Barotrauma Client Doc
|
Public Types | |
enum class | FunctionType { Add , Multiply } |
Public Member Functions | |
Requirement (ContentXElement element, LocationTypeChange change) | |
bool | AnyWithinDistance (Location startLocation, int distance) |
bool | MatchesLocation (Location location) |
bool | MatchesConnection (LocationConnection connection) |
Public Attributes | |
readonly FunctionType | Function |
readonly ImmutableArray< Identifier > | RequiredLocations |
The change can only happen if there's at least one of the given types of locations near this one More... | |
readonly int | RequiredProximity |
How close the location needs to be to one of the RequiredLocations for the change to occur More... | |
readonly float | Probability |
Base probability per turn for the location to change if near one of the RequiredLocations More... | |
readonly int | RequiredProximityForProbabilityIncrease |
How close the location needs to be to one of the RequiredLocations for the probability to increase More... | |
readonly float | ProximityProbabilityIncrease |
How much the probability increases per turn if within RequiredProximityForProbabilityIncrease steps of RequiredLocations More... | |
readonly bool | RequireBeaconStation |
Does there need to be a beacon station within RequiredProximity More... | |
readonly bool | RequireHuntingGrounds |
Does there need to be hunting grounds within RequiredProximity More... | |
Definition at line 13 of file LocationTypeChange.cs.
Enumerator | |
---|---|
Add | |
Multiply |
Definition at line 15 of file LocationTypeChange.cs.
Barotrauma.LocationTypeChange.Requirement.Requirement | ( | ContentXElement | element, |
LocationTypeChange | change | ||
) |
Definition at line 58 of file LocationTypeChange.cs.
bool Barotrauma.LocationTypeChange.Requirement.AnyWithinDistance | ( | Location | startLocation, |
int | distance | ||
) |
Definition at line 96 of file LocationTypeChange.cs.
bool Barotrauma.LocationTypeChange.Requirement.MatchesConnection | ( | LocationConnection | connection | ) |
Definition at line 110 of file LocationTypeChange.cs.
bool Barotrauma.LocationTypeChange.Requirement.MatchesLocation | ( | Location | location | ) |
Definition at line 105 of file LocationTypeChange.cs.
readonly FunctionType Barotrauma.LocationTypeChange.Requirement.Function |
Definition at line 21 of file LocationTypeChange.cs.
readonly float Barotrauma.LocationTypeChange.Requirement.Probability |
Base probability per turn for the location to change if near one of the RequiredLocations
Definition at line 36 of file LocationTypeChange.cs.
readonly float Barotrauma.LocationTypeChange.Requirement.ProximityProbabilityIncrease |
How much the probability increases per turn if within RequiredProximityForProbabilityIncrease steps of RequiredLocations
Definition at line 46 of file LocationTypeChange.cs.
readonly bool Barotrauma.LocationTypeChange.Requirement.RequireBeaconStation |
Does there need to be a beacon station within RequiredProximity
Definition at line 51 of file LocationTypeChange.cs.
readonly ImmutableArray<Identifier> Barotrauma.LocationTypeChange.Requirement.RequiredLocations |
The change can only happen if there's at least one of the given types of locations near this one
Definition at line 26 of file LocationTypeChange.cs.
readonly int Barotrauma.LocationTypeChange.Requirement.RequiredProximity |
How close the location needs to be to one of the RequiredLocations for the change to occur
Definition at line 31 of file LocationTypeChange.cs.
readonly int Barotrauma.LocationTypeChange.Requirement.RequiredProximityForProbabilityIncrease |
How close the location needs to be to one of the RequiredLocations for the probability to increase
Definition at line 41 of file LocationTypeChange.cs.
readonly bool Barotrauma.LocationTypeChange.Requirement.RequireHuntingGrounds |
Does there need to be hunting grounds within RequiredProximity
Definition at line 56 of file LocationTypeChange.cs.