Client LuaCsForBarotrauma
AbilityConditionHasTalent.cs
1
2
namespace
Barotrauma.Abilities
3
{
4
class
AbilityConditionHasTalent
:
AbilityConditionDataless
5
{
6
private
readonly Identifier talentIdentifier;
7
8
public
AbilityConditionHasTalent
(
CharacterTalent
characterTalent
,
ContentXElement
conditionElement) : base(
characterTalent
, conditionElement)
9
{
10
talentIdentifier = conditionElement.
GetAttributeIdentifier
(
"identifier"
, Identifier.Empty);
11
}
12
13
protected
override
bool
MatchesConditionSpecific
()
14
{
15
return
character
.
HasTalent
(talentIdentifier);
16
}
17
}
18
}
Barotrauma.Abilities.AbilityConditionDataless
Definition:
AbilityConditionDataless.cs:4
Barotrauma.Abilities.AbilityConditionHasTalent
Definition:
AbilityConditionHasTalent.cs:5
Barotrauma.Abilities.AbilityConditionHasTalent.MatchesConditionSpecific
override bool MatchesConditionSpecific()
Definition:
AbilityConditionHasTalent.cs:13
Barotrauma.Abilities.AbilityConditionHasTalent.AbilityConditionHasTalent
AbilityConditionHasTalent(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionHasTalent.cs:8
Barotrauma.Abilities.AbilityCondition.character
Character character
Definition:
AbilityCondition.cs:9
Barotrauma.Abilities.AbilityCondition.characterTalent
CharacterTalent characterTalent
Definition:
AbilityCondition.cs:8
Barotrauma.Character.HasTalent
bool HasTalent(Identifier identifier)
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:5663
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.ContentXElement.GetAttributeIdentifier
Identifier GetAttributeIdentifier(string key, string def)
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionDataless
AbilityConditionHasTalent.cs
Generated by
1.9.1