Barotrauma Client Doc
Barotrauma.DamageSound Class Reference
Inheritance diagram for Barotrauma.DamageSound:
Barotrauma.SoundPrefab Barotrauma.Prefab

Public Member Functions

 DamageSound (ContentXElement element, SoundsFile file)
 
- Public Member Functions inherited from Barotrauma.SoundPrefab
 SoundPrefab (ContentXElement element, SoundsFile file, bool stream=false)
 
bool IsPlaying ()
 
override void Dispose ()
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 

Public Attributes

readonly Vector2 DamageRange
 
readonly Identifier DamageType
 
readonly Identifier RequiredTag
 
bool IgnoreMuffling
 
- Public Attributes inherited from Barotrauma.SoundPrefab
readonly ContentPath SoundPath
 
readonly ContentXElement Element
 
readonly Identifier ElementName
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

static readonly PrefabCollection< DamageSoundDamageSoundPrefabs = new PrefabCollection<DamageSound>()
 
- Static Public Attributes inherited from Barotrauma.SoundPrefab
static readonly PrefabSelector< SoundPrefabWaterAmbienceIn = new PrefabSelector<SoundPrefab>()
 
static readonly PrefabSelector< SoundPrefabWaterAmbienceOut = new PrefabSelector<SoundPrefab>()
 
static readonly PrefabSelector< SoundPrefabWaterAmbienceMoving = new PrefabSelector<SoundPrefab>()
 
static readonly PrefabSelector< SoundPrefabStartupSound = new PrefabSelector<SoundPrefab>()
 
static readonly ImmutableDictionary< Identifier, Type > TagToDerivedPrefab
 
static readonly PrefabCollection< SoundPrefabPrefabs
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 
- Protected Member Functions inherited from Barotrauma.SoundPrefab
override Identifier DetermineIdentifier (XElement element)
 
- Properties inherited from Barotrauma.SoundPrefab
static IReadOnlyList< SoundPrefabFlowSounds [get]
 
static IReadOnlyList< SoundPrefabSplashSounds [get]
 
Sound Sound [get]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Detailed Description

Definition at line 208 of file SoundPrefab.cs.

Constructor & Destructor Documentation

◆ DamageSound()

Barotrauma.DamageSound.DamageSound ( ContentXElement  element,
SoundsFile  file 
)

Definition at line 222 of file SoundPrefab.cs.

Member Data Documentation

◆ DamageRange

readonly Vector2 Barotrauma.DamageSound.DamageRange

Definition at line 214 of file SoundPrefab.cs.

◆ DamageSoundPrefabs

readonly PrefabCollection<DamageSound> Barotrauma.DamageSound.DamageSoundPrefabs = new PrefabCollection<DamageSound>()
static

Definition at line 210 of file SoundPrefab.cs.

◆ DamageType

readonly Identifier Barotrauma.DamageSound.DamageType

Definition at line 216 of file SoundPrefab.cs.

◆ IgnoreMuffling

bool Barotrauma.DamageSound.IgnoreMuffling

Definition at line 220 of file SoundPrefab.cs.

◆ RequiredTag

readonly Identifier Barotrauma.DamageSound.RequiredTag

Definition at line 218 of file SoundPrefab.cs.