Client LuaCsForBarotrauma
AbilityConditionSkill.cs
1
using
System.Xml.Linq;
2
3
namespace
Barotrauma.Abilities
4
{
5
class
AbilityConditionSkill
:
AbilityConditionData
6
{
7
private
readonly
string
skillIdentifier;
8
9
public
AbilityConditionSkill
(
CharacterTalent
characterTalent
,
ContentXElement
conditionElement) : base(
characterTalent
, conditionElement)
10
{
11
skillIdentifier = conditionElement.
GetAttributeString
(
"skillidentifier"
,
""
).ToLowerInvariant();
12
}
13
14
private
bool
MatchesConditionSpecific(Identifier skillIdentifier)
15
{
16
return
this.skillIdentifier == skillIdentifier;
17
}
18
19
protected
override
bool
MatchesConditionSpecific
(
AbilityObject
abilityObject)
20
{
21
if
(abilityObject is
IAbilitySkillIdentifier
{ SkillIdentifier: Identifier skillIdentifier })
22
{
23
return
MatchesConditionSpecific(skillIdentifier);
24
}
25
else
26
{
27
LogAbilityConditionError
(abilityObject, typeof(
IAbilitySkillIdentifier
));
28
return
false
;
29
}
30
}
31
}
32
}
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.AbilityConditionSkill
Definition:
AbilityConditionSkill.cs:6
Barotrauma.Abilities.AbilityConditionSkill.AbilityConditionSkill
AbilityConditionSkill(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionSkill.cs:9
Barotrauma.Abilities.AbilityConditionSkill.MatchesConditionSpecific
override bool MatchesConditionSpecific(AbilityObject abilityObject)
Definition:
AbilityConditionSkill.cs:19
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.Abilities.IAbilitySkillIdentifier
Definition:
AbilityInterfaces.cs:34
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionData
AbilityConditionSkill.cs
Generated by
1.9.1