Barotrauma Client Doc
Barotrauma.DamageModifier Class Reference
Inheritance diagram for Barotrauma.DamageModifier:
Barotrauma.ISerializableEntity

Public Member Functions

 DamageModifier (ContentXElement element, string parentDebugName, bool checkErrors=true)
 
bool MatchesAfflictionIdentifier (string identifier)
 
bool MatchesAfflictionIdentifier (Identifier identifier)
 
bool MatchesAfflictionType (string type)
 
bool MatchesAfflictionType (Identifier type)
 
bool MatchesAffliction (string identifier, string type)
 Returns true if the type or the identifier matches the defined types/identifiers. More...
 
bool MatchesAffliction (Identifier identifier, Identifier type)
 
bool MatchesAffliction (Affliction affliction)
 
void Serialize (XElement element)
 
void Deserialize (XElement element)
 

Properties

string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 
float DamageMultiplier [get]
 
float ProbabilityMultiplier [get]
 
Vector2 ArmorSector [get]
 
Vector2 ArmorSectorInRadians [get]
 
bool DeflectProjectiles [get]
 
string AfflictionIdentifiers [get]
 
string AfflictionTypes [get]
 
ref readonly ImmutableArray< IdentifierParsedAfflictionIdentifiers [get]
 
ref readonly ImmutableArray< IdentifierParsedAfflictionTypes [get]
 
string DamageSound [get]
 
string DamageParticle [get]
 
- Properties inherited from Barotrauma.ISerializableEntity
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get]
 

Detailed Description

Constructor & Destructor Documentation

◆ DamageModifier()

Barotrauma.DamageModifier.DamageModifier ( ContentXElement  element,
string  parentDebugName,
bool  checkErrors = true 
)

Member Function Documentation

◆ Deserialize()

void Barotrauma.DamageModifier.Deserialize ( XElement  element)

◆ MatchesAffliction() [1/3]

bool Barotrauma.DamageModifier.MatchesAffliction ( Affliction  affliction)

◆ MatchesAffliction() [2/3]

bool Barotrauma.DamageModifier.MatchesAffliction ( Identifier  identifier,
Identifier  type 
)

◆ MatchesAffliction() [3/3]

bool Barotrauma.DamageModifier.MatchesAffliction ( string  identifier,
string  type 
)

Returns true if the type or the identifier matches the defined types/identifiers.

◆ MatchesAfflictionIdentifier() [1/2]

bool Barotrauma.DamageModifier.MatchesAfflictionIdentifier ( Identifier  identifier)

◆ MatchesAfflictionIdentifier() [2/2]

bool Barotrauma.DamageModifier.MatchesAfflictionIdentifier ( string  identifier)

◆ MatchesAfflictionType() [1/2]

bool Barotrauma.DamageModifier.MatchesAfflictionType ( Identifier  type)

◆ MatchesAfflictionType() [2/2]

bool Barotrauma.DamageModifier.MatchesAfflictionType ( string  type)

◆ Serialize()

void Barotrauma.DamageModifier.Serialize ( XElement  element)

Property Documentation

◆ AfflictionIdentifiers

string Barotrauma.DamageModifier.AfflictionIdentifiers
get

◆ AfflictionTypes

string Barotrauma.DamageModifier.AfflictionTypes
get

◆ ArmorSector

Vector2 Barotrauma.DamageModifier.ArmorSector
get

◆ ArmorSectorInRadians

Vector2 Barotrauma.DamageModifier.ArmorSectorInRadians
get

◆ DamageMultiplier

float Barotrauma.DamageModifier.DamageMultiplier
get

◆ DamageParticle

string Barotrauma.DamageModifier.DamageParticle
get

◆ DamageSound

string Barotrauma.DamageModifier.DamageSound
get

◆ DeflectProjectiles

bool Barotrauma.DamageModifier.DeflectProjectiles
get

◆ Name

string Barotrauma.DamageModifier.Name
get

◆ ParsedAfflictionIdentifiers

ref readonly ImmutableArray<Identifier> Barotrauma.DamageModifier.ParsedAfflictionIdentifiers
get

◆ ParsedAfflictionTypes

ref readonly ImmutableArray<Identifier> Barotrauma.DamageModifier.ParsedAfflictionTypes
get

◆ ProbabilityMultiplier

float Barotrauma.DamageModifier.ProbabilityMultiplier
get

◆ SerializableProperties

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