1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| public struct GameplayTag { [SerializeField] private string _name; [SerializeField] private int _hashCode; [SerializeField] private string _shortName; [SerializeField] private int[] _ancestorHashCodes; [SerializeField] private string[] _ancestorNames;
public bool Root => _ancestorHashCodes.Length == 0; public bool IsDescendantOf(GameplayTag other); public bool HasTag(GameplayTag tag); }
|