Barotrauma Client Doc
Barotrauma.EventManagerSettings Class Reference
Inheritance diagram for Barotrauma.EventManagerSettings:
Barotrauma.PrefabWithUintIdentifier Barotrauma.Prefab

Public Member Functions

override void Dispose ()
 
 EventManagerSettings (XElement element, EventManagerSettingsFile file)
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 

Static Public Member Functions

static EventManagerSettings GetByDifficultyPercentile (float p)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Public Attributes

readonly LocalizedString Name
 
readonly float EventThresholdIncrease = 0.0005f
 
readonly float DefaultEventThreshold = 0.2f
 
readonly float EventCooldown = 360.0f
 
readonly float MinLevelDifficulty = 0.0f
 
readonly float MaxLevelDifficulty = 100.0f
 
readonly float FreezeDurationWhenCrewAway = 60.0f * 10.0f
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

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

Properties

static IOrderedEnumerable< EventManagerSettingsOrderedByDifficulty [get]
 
- Properties inherited from Barotrauma.PrefabWithUintIdentifier
UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Additional Inherited Members

- 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 9 of file EventManagerSettings.cs.

Constructor & Destructor Documentation

◆ EventManagerSettings()

Barotrauma.EventManagerSettings.EventManagerSettings ( XElement  element,
EventManagerSettingsFile  file 
)

Definition at line 44 of file EventManagerSettings.cs.

Member Function Documentation

◆ Dispose()

override void Barotrauma.EventManagerSettings.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 42 of file EventManagerSettings.cs.

◆ GetByDifficultyPercentile()

static EventManagerSettings Barotrauma.EventManagerSettings.GetByDifficultyPercentile ( float  p)
static

Definition at line 21 of file EventManagerSettings.cs.

Member Data Documentation

◆ DefaultEventThreshold

readonly float Barotrauma.EventManagerSettings.DefaultEventThreshold = 0.2f

Definition at line 33 of file EventManagerSettings.cs.

◆ EventCooldown

readonly float Barotrauma.EventManagerSettings.EventCooldown = 360.0f

Definition at line 35 of file EventManagerSettings.cs.

◆ EventThresholdIncrease

readonly float Barotrauma.EventManagerSettings.EventThresholdIncrease = 0.0005f

Definition at line 30 of file EventManagerSettings.cs.

◆ FreezeDurationWhenCrewAway

readonly float Barotrauma.EventManagerSettings.FreezeDurationWhenCrewAway = 60.0f * 10.0f

Definition at line 40 of file EventManagerSettings.cs.

◆ MaxLevelDifficulty

readonly float Barotrauma.EventManagerSettings.MaxLevelDifficulty = 100.0f

Definition at line 38 of file EventManagerSettings.cs.

◆ MinLevelDifficulty

readonly float Barotrauma.EventManagerSettings.MinLevelDifficulty = 0.0f

Definition at line 37 of file EventManagerSettings.cs.

◆ Name

readonly LocalizedString Barotrauma.EventManagerSettings.Name

Definition at line 27 of file EventManagerSettings.cs.

◆ Prefabs

readonly PrefabCollection<EventManagerSettings> Barotrauma.EventManagerSettings.Prefabs = new PrefabCollection<EventManagerSettings>()
static

Definition at line 11 of file EventManagerSettings.cs.

Property Documentation

◆ OrderedByDifficulty

IOrderedEnumerable<EventManagerSettings> Barotrauma.EventManagerSettings.OrderedByDifficulty
staticget

Definition at line 12 of file EventManagerSettings.cs.