Client LuaCsForBarotrauma
AbilityConditionGeneHarvester.cs
1
using
System.Xml.Linq;
2
3
namespace
Barotrauma.Abilities
4
{
5
class
AbilityConditionGeneHarvester
:
AbilityConditionData
6
{
7
8
public
AbilityConditionGeneHarvester
(
CharacterTalent
characterTalent
,
ContentXElement
conditionElement) : base(
characterTalent
, conditionElement) { }
9
10
protected
override
bool
MatchesConditionSpecific
(
AbilityObject
abilityObject)
11
{
12
if
(abilityObject is
AbilityCharacterKill
abilityCharacterKill)
13
{
14
return
abilityCharacterKill.Killer.Submarine ==
null
|| abilityCharacterKill.Killer.TeamID != abilityCharacterKill.Killer.Submarine.TeamID;
15
}
16
else
17
{
18
LogAbilityConditionError
(abilityObject, typeof(
AbilityCharacterKill
));
19
return
false
;
20
}
21
}
22
}
23
}
Barotrauma.Abilities.AbilityConditionData
Definition:
AbilityConditionData.cs:6
Barotrauma.Abilities.AbilityConditionData.LogAbilityConditionError
void LogAbilityConditionError(AbilityObject abilityObject, Type expectedData)
Definition:
AbilityConditionData.cs:18
Barotrauma.Abilities.AbilityConditionGeneHarvester
Definition:
AbilityConditionGeneHarvester.cs:6
Barotrauma.Abilities.AbilityConditionGeneHarvester.AbilityConditionGeneHarvester
AbilityConditionGeneHarvester(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionGeneHarvester.cs:8
Barotrauma.Abilities.AbilityConditionGeneHarvester.MatchesConditionSpecific
override bool MatchesConditionSpecific(AbilityObject abilityObject)
Definition:
AbilityConditionGeneHarvester.cs:10
Barotrauma.Abilities.AbilityCondition.characterTalent
CharacterTalent characterTalent
Definition:
AbilityCondition.cs:8
Barotrauma.Abilities.AbilityObject
Definition:
AbilityObjects.cs:6
Barotrauma.AbilityCharacterKill
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:6056
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionData
AbilityConditionGeneHarvester.cs
Generated by
1.9.1