Barotrauma Client Doc
Barotrauma.OutpostGenerationParams Class Reference
Inheritance diagram for Barotrauma.OutpostGenerationParams:
Barotrauma.PrefabWithUintIdentifier Barotrauma.ISerializableEntity Barotrauma.Prefab Barotrauma.RuinGeneration.RuinGenerationParams

Classes

class  ModuleCount
 

Public Member Functions

 OutpostGenerationParams (ContentXElement element, ContentFile file)
 
int GetModuleCount (Identifier moduleFlag)
 
void SetModuleCount (Identifier moduleFlag, int count)
 
void SetAllowedLocationTypes (IEnumerable< Identifier > allowedLocationTypes)
 
IReadOnlyList< HumanPrefabGetHumanPrefabs (IEnumerable< FactionPrefab > factions, Rand.RandSync randSync)
 
bool CanHaveCampaignInteraction (CampaignMode.InteractionType interactionType)
 
ImmutableHashSet< IdentifierGetStoreIdentifiers ()
 
override void Dispose ()
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 

Static Public Attributes

static readonly PrefabCollection< OutpostGenerationParamsOutpostParams = new PrefabCollection<OutpostGenerationParams>()
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Properties

virtual string Name [get]
 
IEnumerable< IdentifierAllowedLocationTypes [get]
 Identifiers of the location types this outpost can appear in. If empty, can appear in all types of locations. More...
 
int ForceToEndLocationIndex [get, set]
 
int PreferredDifficulty [get, set]
 
int TotalModuleCount [get, set]
 
bool AppendToReachTotalModuleCount [get, set]
 
float MinHallwayLength [get, set]
 
bool AlwaysDestructible [get, set]
 
bool AlwaysRewireable [get, set]
 
bool AllowStealing [get, set]
 
bool SpawnCrewInsideOutpost [get, set]
 
bool LockUnusedDoors [get, set]
 
bool RemoveUnusedGaps [get, set]
 
bool DrawBehindSubs [get, set]
 
float MinWaterPercentage [get, set]
 
float MaxWaterPercentage [get, set]
 
LevelData.? LevelType LevelType [get, set]
 
string ReplaceInRadiation [get, set]
 
ContentPath OutpostFilePath [get, set]
 
IReadOnlyList< ModuleCountModuleCounts [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 
- Properties inherited from Barotrauma.PrefabWithUintIdentifier
UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 
- Properties inherited from Barotrauma.ISerializableEntity
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 
- Protected Member Functions inherited from Barotrauma.PrefabWithUintIdentifier
 PrefabWithUintIdentifier (ContentFile file, Identifier identifier)
 
 PrefabWithUintIdentifier (ContentFile file, ContentXElement element)
 
- Protected Member Functions inherited from Barotrauma.Prefab
virtual Identifier DetermineIdentifier (XElement element)
 

Detailed Description

Definition at line 10 of file OutpostGenerationParams.cs.

Constructor & Destructor Documentation

◆ OutpostGenerationParams()

Barotrauma.OutpostGenerationParams.OutpostGenerationParams ( ContentXElement  element,
ContentFile  file 
)

Definition at line 237 of file OutpostGenerationParams.cs.

Member Function Documentation

◆ CanHaveCampaignInteraction()

bool Barotrauma.OutpostGenerationParams.CanHaveCampaignInteraction ( CampaignMode.InteractionType  interactionType)

Definition at line 334 of file OutpostGenerationParams.cs.

◆ Dispose()

override void Barotrauma.OutpostGenerationParams.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 369 of file OutpostGenerationParams.cs.

◆ GetHumanPrefabs()

IReadOnlyList<HumanPrefab> Barotrauma.OutpostGenerationParams.GetHumanPrefabs ( IEnumerable< FactionPrefab >  factions,
Rand.RandSync  randSync 
)

Definition at line 326 of file OutpostGenerationParams.cs.

◆ GetModuleCount()

int Barotrauma.OutpostGenerationParams.GetModuleCount ( Identifier  moduleFlag)

Definition at line 289 of file OutpostGenerationParams.cs.

◆ GetStoreIdentifiers()

ImmutableHashSet<Identifier> Barotrauma.OutpostGenerationParams.GetStoreIdentifiers ( )

Definition at line 349 of file OutpostGenerationParams.cs.

◆ SetAllowedLocationTypes()

void Barotrauma.OutpostGenerationParams.SetAllowedLocationTypes ( IEnumerable< Identifier allowedLocationTypes)

Definition at line 316 of file OutpostGenerationParams.cs.

◆ SetModuleCount()

void Barotrauma.OutpostGenerationParams.SetModuleCount ( Identifier  moduleFlag,
int  count 
)

Definition at line 295 of file OutpostGenerationParams.cs.

Member Data Documentation

◆ OutpostParams

readonly PrefabCollection<OutpostGenerationParams> Barotrauma.OutpostGenerationParams.OutpostParams = new PrefabCollection<OutpostGenerationParams>()
static

Definition at line 12 of file OutpostGenerationParams.cs.

Property Documentation

◆ AllowedLocationTypes

IEnumerable<Identifier> Barotrauma.OutpostGenerationParams.AllowedLocationTypes
get

Identifiers of the location types this outpost can appear in. If empty, can appear in all types of locations.

Definition at line 21 of file OutpostGenerationParams.cs.

◆ AllowStealing

bool Barotrauma.OutpostGenerationParams.AllowStealing
getset

Definition at line 77 of file OutpostGenerationParams.cs.

◆ AlwaysDestructible

bool Barotrauma.OutpostGenerationParams.AlwaysDestructible
getset

Definition at line 63 of file OutpostGenerationParams.cs.

◆ AlwaysRewireable

bool Barotrauma.OutpostGenerationParams.AlwaysRewireable
getset

Definition at line 70 of file OutpostGenerationParams.cs.

◆ AppendToReachTotalModuleCount

bool Barotrauma.OutpostGenerationParams.AppendToReachTotalModuleCount
getset

Definition at line 49 of file OutpostGenerationParams.cs.

◆ DrawBehindSubs

bool Barotrauma.OutpostGenerationParams.DrawBehindSubs
getset

Definition at line 105 of file OutpostGenerationParams.cs.

◆ ForceToEndLocationIndex

int Barotrauma.OutpostGenerationParams.ForceToEndLocationIndex
getset

Definition at line 28 of file OutpostGenerationParams.cs.

◆ LevelType

LevelData.? LevelType Barotrauma.OutpostGenerationParams.LevelType
getset

Definition at line 125 of file OutpostGenerationParams.cs.

◆ LockUnusedDoors

bool Barotrauma.OutpostGenerationParams.LockUnusedDoors
getset

Definition at line 91 of file OutpostGenerationParams.cs.

◆ MaxWaterPercentage

float Barotrauma.OutpostGenerationParams.MaxWaterPercentage
getset

Definition at line 119 of file OutpostGenerationParams.cs.

◆ MinHallwayLength

float Barotrauma.OutpostGenerationParams.MinHallwayLength
getset

Definition at line 56 of file OutpostGenerationParams.cs.

◆ MinWaterPercentage

float Barotrauma.OutpostGenerationParams.MinWaterPercentage
getset

Definition at line 112 of file OutpostGenerationParams.cs.

◆ ModuleCounts

IReadOnlyList<ModuleCount> Barotrauma.OutpostGenerationParams.ModuleCounts
get

Definition at line 162 of file OutpostGenerationParams.cs.

◆ Name

virtual string Barotrauma.OutpostGenerationParams.Name
get

Definition at line 14 of file OutpostGenerationParams.cs.

◆ OutpostFilePath

ContentPath Barotrauma.OutpostGenerationParams.OutpostFilePath
getset

Definition at line 134 of file OutpostGenerationParams.cs.

◆ PreferredDifficulty

int Barotrauma.OutpostGenerationParams.PreferredDifficulty
getset

Definition at line 35 of file OutpostGenerationParams.cs.

◆ RemoveUnusedGaps

bool Barotrauma.OutpostGenerationParams.RemoveUnusedGaps
getset

Definition at line 98 of file OutpostGenerationParams.cs.

◆ ReplaceInRadiation

string Barotrauma.OutpostGenerationParams.ReplaceInRadiation
getset

Definition at line 132 of file OutpostGenerationParams.cs.

◆ SerializableProperties

Dictionary<Identifier, SerializableProperty> Barotrauma.OutpostGenerationParams.SerializableProperties
get

Definition at line 232 of file OutpostGenerationParams.cs.

◆ SpawnCrewInsideOutpost

bool Barotrauma.OutpostGenerationParams.SpawnCrewInsideOutpost
getset

Definition at line 84 of file OutpostGenerationParams.cs.

◆ TotalModuleCount

int Barotrauma.OutpostGenerationParams.TotalModuleCount
getset

Definition at line 42 of file OutpostGenerationParams.cs.