Class: GameplayTagContainer
Defined in: container.ts:8
Implements
Iterable<GameplayTag>
Constructors
Constructor
new GameplayTagContainer(tag?): GameplayTagContainer;Defined in: container.ts:30
Parameters
tag?
Returns
GameplayTagContainer
Accessors
emptyContainer
Get Signature
get static emptyContainer(): GameplayTagContainer;Defined in: container.ts:10
A fresh empty container. A getter (not a shared instance) so callers can never mutate a global.
Returns
GameplayTagContainer
Methods
[iterator]()
iterator: IterableIterator<GameplayTag>;Defined in: container.ts:301
Returns
IterableIterator<GameplayTag>
Implementation of
Iterable.[iterator]addLeafTag()
addLeafTag(tagToAdd): boolean;Defined in: container.ts:178
Adds a leaf tag, replacing any explicit parents it makes redundant. Returns false when a child of the tag is already present.
Parameters
tagToAdd
Returns
boolean
addTag()
addTag(tagToAdd): void;Defined in: container.ts:159
Parameters
tagToAdd
Returns
void
appendMatchingTags()
appendMatchingTags(otherA, otherB): void;Defined in: container.ts:151
Appends tags from otherA that hierarchically match any tag in otherB.
Parameters
otherA
GameplayTagContainer
otherB
GameplayTagContainer
Returns
void
appendTags()
appendTags(other): void;Defined in: container.ts:144
Parameters
other
GameplayTagContainer
Returns
void
createFromArray()
static createFromArray(sourceTags): GameplayTagContainer;Defined in: container.ts:14
Parameters
sourceTags
readonly GameplayTag[]
Returns
GameplayTagContainer
equals()
equals(other): boolean;Defined in: container.ts:36
Parameters
other
GameplayTagContainer
Returns
boolean
filter()
filter(otherContainer): GameplayTagContainer;Defined in: container.ts:116
Tags of this container that hierarchically match any tag in the other container.
Parameters
otherContainer
GameplayTagContainer
Returns
GameplayTagContainer
filterExact()
filterExact(otherContainer): GameplayTagContainer;Defined in: container.ts:128
Parameters
otherContainer
GameplayTagContainer
Returns
GameplayTagContainer
first()
first(): GameplayTag;Defined in: container.ts:280
Returns
fromExportString()
fromExportString(exportString): void;Defined in: container.ts:229
Rebuilds the container from an Unreal-style export string such as (GameplayTags=("A.B","A.C")), keeping only tags registered with the manager.
Parameters
exportString
string
Returns
void
getByIndex()
getByIndex(index): GameplayTag;Defined in: container.ts:276
Parameters
index
number
Returns
getGameplayTagArray()
getGameplayTagArray(): GameplayTag[];Defined in: container.ts:268
Returns
getGameplayTagParents()
getGameplayTagParents(): GameplayTagContainer;Defined in: container.ts:101
New container holding the explicit tags plus all their implicit parents.
Returns
GameplayTagContainer
hasAll()
hasAll(containerToCheck): boolean;Defined in: container.ts:80
Parameters
containerToCheck
GameplayTagContainer
Returns
boolean
hasAllExact()
hasAllExact(containerToCheck): boolean;Defined in: container.ts:84
Parameters
containerToCheck
GameplayTagContainer
Returns
boolean
hasAny()
hasAny(containerToCheck): boolean;Defined in: container.ts:64
Parameters
containerToCheck
GameplayTagContainer
Returns
boolean
hasAnyExact()
hasAnyExact(containerToCheck): boolean;Defined in: container.ts:72
Parameters
containerToCheck
GameplayTagContainer
Returns
boolean
hasTag()
hasTag(tagToCheck): boolean;Defined in: container.ts:51
Hierarchical membership: true when the container holds the tag or any child of it.
Parameters
tagToCheck
Returns
boolean
hasTagExact()
hasTagExact(tagToCheck): boolean;Defined in: container.ts:60
Parameters
tagToCheck
Returns
boolean
isEmpty()
isEmpty(): boolean;Defined in: container.ts:96
Returns
boolean
isValid()
isValid(): boolean;Defined in: container.ts:92
Returns
boolean
isValidIndex()
isValidIndex(index): boolean;Defined in: container.ts:272
Parameters
index
number
Returns
boolean
last()
last(): GameplayTag;Defined in: container.ts:284
Returns
matchesQuery()
matchesQuery(query): boolean;Defined in: container.ts:140
Parameters
query
Returns
boolean
num()
num(): number;Defined in: container.ts:88
Returns
number
removeTag()
removeTag(tagToRemove): boolean;Defined in: container.ts:200
Parameters
tagToRemove
Returns
boolean
removeTags()
removeTags(tagsToRemove): void;Defined in: container.ts:213
Parameters
tagsToRemove
GameplayTagContainer
Returns
void
reset()
reset(): void;Defined in: container.ts:219
Returns
void
sort()
sort(): void;Defined in: container.ts:288
Returns
void
toJSON()
toJSON(): string[];Defined in: container.ts:297
Returns
string[]
toString()
toString(): string;Defined in: container.ts:293
Returns a string representation of an object.
Returns
string
toStringSimple()
toStringSimple(quoted?): string;Defined in: container.ts:242
Parameters
quoted?
boolean = false
Returns
string
toStringsMaxLen()
toStringsMaxLen(maxLen): string[];Defined in: container.ts:246
Parameters
maxLen
number
Returns
string[]