|
Infohazard.Core 1.4.2
Infohazard Core Utility Library
|
Used to select tags in the inspector, including the ability to select multiple tags. More...
Public Member Functions | |
| TagMask (long value) | |
| Initialize a new TagMask with the given value. More... | |
| override string | ToString () |
| bool | Equals (TagMask other) |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
Static Public Member Functions | |
| static implicit | operator long (TagMask mask) |
| Convert a TagMask to a long. More... | |
| static implicit | operator TagMask (long mask) |
| Convert a long to a TagMask. More... | |
| static TagMask | operator& (in TagMask lhs, in TagMask rhs) |
| Apply bitwise AND operator to two TagMasks. More... | |
| static TagMask | operator& (TagMask lhs, long rhs) |
| Apply bitwise AND operator to a TagMask and a long. More... | |
| static long | operator& (long lhs, TagMask rhs) |
| Apply bitwise AND operator to a long and a TagMask. More... | |
| static TagMask | operator| (TagMask lhs, TagMask rhs) |
| Apply bitwise OR operator to a TagMask and a TagMask. More... | |
| static TagMask | operator| (TagMask lhs, long rhs) |
| Apply bitwise OR operator to a TagMask and a long. More... | |
| static long | operator| (long lhs, TagMask rhs) |
| Apply bitwise OR operator to a long and a TagMask. More... | |
| static TagMask | operator^ (TagMask lhs, TagMask rhs) |
| Apply bitwise XOR operator to a TagMask and a TagMask. More... | |
| static TagMask | operator^ (TagMask lhs, long rhs) |
| Apply bitwise XOR operator to a TagMask and a long. More... | |
| static long | operator^ (long lhs, TagMask rhs) |
| Apply bitwise XOR operator to a long and a TagMask. More... | |
| static TagMask | operator~ (TagMask mask) |
| Apply bitwise NOT operator to a TagMask. More... | |
| static int | NameToTag (string name) |
| Gets the index of a given tag in the Tag.Tags array. More... | |
| static string | TagToName (int tag) |
| Gets the tag name at the given index in the Tag.Tags array. More... | |
| static long | GetMask (params string[] names) |
| Get a mask value that contains all the given tag names. More... | |
| static long | GetMask (string name) |
| Get a mask value that contains the given tag name. More... | |
Static Public Attributes | |
| const long | UntaggedMask = 1 << 0 |
| Mask value for the Untagged tag. More... | |
| const long | RespawnMask = 1 << 1 |
| Mask value for the Respawn tag. More... | |
| const long | FinishMask = 1 << 2 |
| Mask value for the Finish tag. More... | |
| const long | EditorOnlyMask = 1 << 3 |
| Mask value for the EditorOnly tag. More... | |
| const long | MainCameraMask = 1 << 4 |
| Mask value for the MainCamera tag. More... | |
| const long | PlayerMask = 1 << 5 |
| Mask value for the Player tag. More... | |
| const long | GameControllerMask = 1 << 6 |
| Mask value for the GameController tag. More... | |
Properties | |
| long | Value [get, set] |
| The value of the mask as a 64-bit integer. More... | |
Used to select tags in the inspector, including the ability to select multiple tags.
Works similar to LayerMask. If you have a custom GameTag script generated, your custom tags will be available here too. You can find code constants for those tags in GameTagMask. Like LayerMask, TagMask is implicitly convertable to and from an integer value (long in this case).
| Infohazard.Core.TagMask.TagMask | ( | long | value | ) |
Initialize a new TagMask with the given value.
| value | The value to initialize with, representing which tags are "on". |
| override bool Infohazard.Core.TagMask.Equals | ( | object | obj | ) |
| bool Infohazard.Core.TagMask.Equals | ( | TagMask | other | ) |
| override int Infohazard.Core.TagMask.GetHashCode | ( | ) |
|
static |
Get a mask value that contains all the given tag names.
| names | Names of tags to include in the mask. |
|
static |
Get a mask value that contains the given tag name.
| name | Name of tag to include in the mask. |
|
static |
|
static |
|
static |
Apply bitwise AND operator to two TagMasks.
|
static |
Apply bitwise AND operator to a long and a TagMask.
Apply bitwise AND operator to a TagMask and a long.
|
static |
Apply bitwise XOR operator to a long and a TagMask.
Apply bitwise XOR operator to a TagMask and a long.
|
static |
Apply bitwise OR operator to a long and a TagMask.
Apply bitwise OR operator to a TagMask and a long.
Apply bitwise NOT operator to a TagMask.
|
static |
| override string Infohazard.Core.TagMask.ToString | ( | ) |
|
static |
Mask value for the EditorOnly tag.
|
static |
Mask value for the Finish tag.
|
static |
Mask value for the GameController tag.
|
static |
Mask value for the MainCamera tag.
|
static |
Mask value for the Player tag.
|
static |
Mask value for the Respawn tag.
|
static |
Mask value for the Untagged tag.
|
getset |
The value of the mask as a 64-bit integer.