Client LuaCsForBarotrauma
AbilityConditionItemIsStatic.cs
1
using
Barotrauma
.
Items
.
Components
;
2
3
namespace
Barotrauma.Abilities
4
{
5
class
AbilityConditionItemIsStatic
:
AbilityConditionData
6
{
7
public
AbilityConditionItemIsStatic
(
CharacterTalent
characterTalent
,
ContentXElement
conditionElement) : base(
characterTalent
, conditionElement) { }
8
9
protected
override
bool
MatchesConditionSpecific
(
AbilityObject
abilityObject)
10
{
11
if
(abilityObject is
IAbilityItem
{
Item
: var item })
12
{
13
return
item.GetComponent<
Holdable
>() is
null
&& item.GetComponent<
Wearable
>() is
null
;
14
}
15
16
return
false
;
17
}
18
}
19
}
Barotrauma.Abilities.AbilityConditionData
Definition:
AbilityConditionData.cs:6
Barotrauma.Abilities.AbilityCondition.characterTalent
CharacterTalent characterTalent
Definition:
AbilityCondition.cs:8
Barotrauma.Abilities.AbilityConditionItemIsStatic
Definition:
AbilityConditionItemIsStatic.cs:6
Barotrauma.Abilities.AbilityConditionItemIsStatic.MatchesConditionSpecific
override bool MatchesConditionSpecific(AbilityObject abilityObject)
Definition:
AbilityConditionItemIsStatic.cs:9
Barotrauma.Abilities.AbilityConditionItemIsStatic.AbilityConditionItemIsStatic
AbilityConditionItemIsStatic(CharacterTalent characterTalent, ContentXElement conditionElement)
Definition:
AbilityConditionItemIsStatic.cs:7
Barotrauma.Abilities.AbilityObject
Definition:
AbilityObjects.cs:6
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.Item
Definition:
BarotraumaShared/SharedSource/Items/Item.cs:26
Barotrauma.Items.Components.Holdable
Definition:
BarotraumaShared/SharedSource/Items/Components/Holdable/Holdable.cs:16
Barotrauma.Items.Components.Wearable
Definition:
BarotraumaShared/SharedSource/Items/Components/Wearable.cs:285
Barotrauma.Abilities.IAbilityItem
Definition:
AbilityInterfaces.cs:9
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma.Items.Components
Definition:
BarotraumaShared/SharedSource/Items/Components/DockingPort.cs:15
Barotrauma.Items
Definition:
BarotraumaShared/SharedSource/Items/Components/DockingPort.cs:15
Barotrauma
Definition:
AchievementManager.cs:12
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
AbilityConditionals
AbilityConditionData
AbilityConditionItemIsStatic.cs
Generated by
1.9.1