Barotrauma Client Doc
Barotrauma.EventSet.SubEventPrefab Struct Reference

Public Member Functions

 SubEventPrefab (Either< Identifier[], EventPrefab > prefabOrIdentifiers, float? commonness, float? probability, Identifier factionId)
 
void Deconstruct (out IEnumerable< EventPrefab > eventPrefabs, out float commonness, out float probability)
 
IEnumerable< IdentifierGetMissingIdentifiers ()
 

Public Attributes

readonly Either< Identifier[], EventPrefabPrefabOrIdentifier
 
readonly? float SelfCommonness
 
readonly? float SelfProbability
 
readonly Identifier Faction
 

Properties

IEnumerable< EventPrefabEventPrefabs [get]
 
float Commonness [get]
 
float Probability [get]
 

Detailed Description

Definition at line 232 of file EventSet.cs.

Constructor & Destructor Documentation

◆ SubEventPrefab()

Barotrauma.EventSet.SubEventPrefab.SubEventPrefab ( Either< Identifier[], EventPrefab prefabOrIdentifiers,
float?  commonness,
float?  probability,
Identifier  factionId 
)

Definition at line 234 of file EventSet.cs.

Member Function Documentation

◆ Deconstruct()

void Barotrauma.EventSet.SubEventPrefab.Deconstruct ( out IEnumerable< EventPrefab eventPrefabs,
out float  commonness,
out float  probability 
)

Definition at line 272 of file EventSet.cs.

◆ GetMissingIdentifiers()

IEnumerable<Identifier> Barotrauma.EventSet.SubEventPrefab.GetMissingIdentifiers ( )

Definition at line 279 of file EventSet.cs.

Member Data Documentation

◆ Faction

readonly Identifier Barotrauma.EventSet.SubEventPrefab.Faction

Definition at line 270 of file EventSet.cs.

◆ PrefabOrIdentifier

readonly Either<Identifier[], EventPrefab> Barotrauma.EventSet.SubEventPrefab.PrefabOrIdentifier

Definition at line 242 of file EventSet.cs.

◆ SelfCommonness

readonly? float Barotrauma.EventSet.SubEventPrefab.SelfCommonness

Definition at line 264 of file EventSet.cs.

◆ SelfProbability

readonly? float Barotrauma.EventSet.SubEventPrefab.SelfProbability

Definition at line 267 of file EventSet.cs.

Property Documentation

◆ Commonness

float Barotrauma.EventSet.SubEventPrefab.Commonness
get

Definition at line 265 of file EventSet.cs.

◆ EventPrefabs

IEnumerable<EventPrefab> Barotrauma.EventSet.SubEventPrefab.EventPrefabs
get

Definition at line 243 of file EventSet.cs.

◆ Probability

float Barotrauma.EventSet.SubEventPrefab.Probability
get

Definition at line 268 of file EventSet.cs.