Table of Contents

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
object
GameTagSet

Constructors

GameTagSet()

Creates an empty tag set.

public GameTagSet()

GameTagSet(GameTagSO)

Creates a tag set containing a single tag.

public GameTagSet(GameTagSO single)

Parameters

single GameTagSO

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

tag GameTagSO

Returns

bool

ContainsAll(GameTagSet)

Returns true if this set contains every tag in other.

public bool ContainsAll(GameTagSet other)

Parameters

other GameTagSet

Returns

bool

ContainsAny(GameTagSet)

Returns true if this set contains at least one tag from other.

public bool ContainsAny(GameTagSet other)

Parameters

other GameTagSet

Returns

bool