Class GameTagSet
- Namespace
- ElectricDrill.AstraRpgFramework.Tags
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Embeddable, serializable collection of GameTagSOs.
Usable as a [SerializeField] in any ScriptableObject, MonoBehaviour, or plain class.
[Serializable]
public class GameTagSet
- Inheritance
-
objectGameTagSet
Constructors
GameTagSet()
Creates an empty tag set.
public GameTagSet()
GameTagSet(GameTagSO)
Creates a tag set containing a single tag.
public GameTagSet(GameTagSO single)
Parameters
singleGameTagSO
Properties
Tags
Read-only view of the tags in this set.
public IReadOnlyList<GameTagSO> Tags { get; }
Property Value
- IReadOnlyList<GameTagSO>
Methods
Contains(GameTagSO)
Returns true if this set contains tag.
public bool Contains(GameTagSO tag)
Parameters
tagGameTagSO
Returns
- bool
ContainsAll(GameTagSet)
Returns true if this set contains every tag in other.
public bool ContainsAll(GameTagSet other)
Parameters
otherGameTagSet
Returns
- bool
ContainsAny(GameTagSet)
Returns true if this set contains at least one tag from other.
public bool ContainsAny(GameTagSet other)
Parameters
otherGameTagSet
Returns
- bool