namespace StatHub;
[GlobalClass, Icon("res://addons/StatHub/Assets/TagMatcher.png")]
public partial class TagMatcher : Resource
A tag matcher decides whether or not a tag holder matches its set requirements for use with global modifiers.
InvertTagFilter
[Export]
public bool InvertTagFilter { get; private set; }
If true, turns the tag filter into a blacklist rather than a whitelist.
RequiredTagMatches
[Export]
public int RequiredTagMatches { get; private set; } = 1;
The amount of matches required to be considered matching; if less than zero, will require all tags in the filter to be matched.
If InvertTagFilter
is true
, this will be flipped as well, requiring the same amount of matches with the filter to not be considered a match.
TagFilter
[Export]
public TagHolder TagFilter { get; private set; }
The tag holder used to filter applicable tags.
By default, this is a whitelist.
Matches(TagHolder)
public bool Matches(TagHolder tagHolder)
Decides whether or not the tag holder matches this matcher’s criteria.