Client LuaCsForBarotrauma
AbilityConditionStatusEffectIdentifier.cs
1
using
System.Xml.Linq;
2
using
static
Barotrauma
.
StatusEffect
;
3
4
namespace
Barotrauma.Abilities
5
{
6
class
AbilityConditionStatusEffectIdentifier
:
AbilityConditionData
7
{
8
private
string
effectIdentifier;
9
10
public
AbilityConditionStatusEffectIdentifier
(
CharacterTalent
characterTalent
,
ContentXElement
conditionElement) : base(
characterTalent
, conditionElement)
11
{
12
effectIdentifier = conditionElement.
GetAttributeString
(
"effectidentifier"
,
""
).ToLowerInvariant();
13
}
14
15
protected
override
bool
MatchesConditionSpecific
(
AbilityObject
abilityObject)
16
{
17
if
(abilityObject is AbilityStatusEffectIdentifier abilityStatusEffectIdentifier)
18
{
19
return
abilityStatusEffectIdentifier.EffectIdentifier == effectIdentifier;
20
}
21
else
22
{
23
LogAbilityConditionError
(abilityObject, typeof(AbilityStatusEffectIdentifier));
24
return
false
;
25
}
26
}
27
}
28
}
Barotrauma.Abilities.AbilityConditionData
Definition:
AbilityConditionData.cs:6
Barotrauma.Abilities.AbilityConditionData.LogAbilityConditionError
void LogAbilityConditionError(AbilityObject abilityObject, Type expectedData)
Definition:
AbilityConditionData.cs:18
Barotrauma.Abilities.AbilityCondition.characterTalent
CharacterTalent characterTalent
Definition:
AbilityCondition.cs:8
Barotrauma.Abilities.AbilityConditionStatusEffectIdentifier
Definition:
AbilityConditionStatusEffectIdentifier.cs:7
Barotrauma.Abilities.AbilityConditionStatusEffectIdentifier.AbilityConditionStatusEffectIdentifier
AbilityConditionStatusEffectIdentifier(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionStatusEffectIdentifier.cs:10
Barotrauma.Abilities.AbilityConditionStatusEffectIdentifier.MatchesConditionSpecific
override bool MatchesConditionSpecific(AbilityObject abilityObject)
Definition:
AbilityConditionStatusEffectIdentifier.cs:15
Barotrauma.Abilities.AbilityObject
Definition:
AbilityObjects.cs:6
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.ContentXElement.GetAttributeString
string? GetAttributeString(string key, string? def)
Barotrauma.StatusEffect
StatusEffects can be used to execute various kinds of effects: modifying the state of some entity in ...
Definition:
BarotraumaShared/SharedSource/StatusEffects/StatusEffect.cs:72
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma
Definition:
AchievementManager.cs:12
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionData
AbilityConditionStatusEffectIdentifier.cs
Generated by
1.9.1