Client LuaCsForBarotrauma
CharacterAbilityGiveFlag.cs
1
namespace
Barotrauma.Abilities
2
{
3
class
CharacterAbilityGiveFlag
:
CharacterAbility
4
{
5
private
readonly
AbilityFlags
abilityFlag;
6
7
// this and resistance giving should probably be moved directly to charactertalent attributes, as they don't need to interact with either ability group types
8
public
CharacterAbilityGiveFlag
(
CharacterAbilityGroup
characterAbilityGroup,
ContentXElement
abilityElement) : base(characterAbilityGroup, abilityElement)
9
{
10
abilityFlag =
CharacterAbilityGroup
.
ParseFlagType
(abilityElement.
GetAttributeString
(
"flagtype"
,
""
),
CharacterTalent
.
DebugIdentifier
);
11
}
12
13
public
override
void
InitializeAbility
(
bool
addingFirstTime)
14
{
15
Character
.
AddAbilityFlag
(abilityFlag);
16
}
17
}
18
}
Barotrauma.Abilities.CharacterAbilityGiveFlag
Definition:
CharacterAbilityGiveFlag.cs:4
Barotrauma.Abilities.CharacterAbilityGiveFlag.InitializeAbility
override void InitializeAbility(bool addingFirstTime)
Definition:
CharacterAbilityGiveFlag.cs:13
Barotrauma.Abilities.CharacterAbilityGiveFlag.CharacterAbilityGiveFlag
CharacterAbilityGiveFlag(CharacterAbilityGroup characterAbilityGroup, ContentXElement abilityElement)
Definition:
CharacterAbilityGiveFlag.cs:8
Barotrauma.Abilities.CharacterAbilityGroup
Definition:
CharacterAbilityGroup.cs:9
Barotrauma.Abilities.CharacterAbilityGroup.ParseFlagType
static AbilityFlags ParseFlagType(string flagTypeString, string debugIdentifier)
Definition:
CharacterAbilityGroup.cs:285
Barotrauma.Abilities.CharacterAbility
Definition:
CharacterAbility.cs:7
Barotrauma.Character
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:32
Barotrauma.Character.AddAbilityFlag
void AddAbilityFlag(AbilityFlags abilityFlag)
Definition:
BarotraumaShared/SharedSource/Characters/Character.cs:5912
Barotrauma.CharacterTalent
Definition:
CharacterTalent.cs:8
Barotrauma.CharacterTalent.DebugIdentifier
string DebugIdentifier
Definition:
CharacterTalent.cs:10
Barotrauma.ContentXElement
Definition:
ContentXElement.cs:13
Barotrauma.ContentXElement.GetAttributeString
string? GetAttributeString(string key, string? def)
Barotrauma.Abilities
Definition:
AbilityCondition.cs:5
Barotrauma.AbilityFlags
AbilityFlags
AbilityFlags are a set of toggleable flags that can be applied to characters.
Definition:
Enums.cs:641
Barotrauma
BarotraumaShared
SharedSource
Characters
Talents
Abilities
CharacterAbilityGiveFlag.cs
Generated by
1.9.1