A persistent and serializable reference to a component type. Is valid as long as the component type is not renamed. More...
Inherits IEquatable< ComponentTypeRef >.
Public Member Functions | |
bool | Equals (ComponentTypeRef other) |
override bool | Equals (object obj) |
override int | GetHashCode () |
bool | Is (Type type) |
Returns true if this component type reference points to type . More... | |
bool | Is< T > () |
Returns true if this component type reference points to T . More... | |
Static Public Member Functions | |
static ComponentTypeRef | FromRaw (uint rawValue) |
Creates a new component type reference from a raw value. More... | |
static ComponentTypeRef | FromType (Type type) |
static ComponentTypeRef | FromType< T > () |
Creates a new component type reference from a type. More... | |
static ComponentTypeRef | FromTypeName (string typeName) |
Creates a new component type reference from a type name. More... | |
static bool | operator!= (ComponentTypeRef a, ComponentTypeRef b) |
static bool | operator== (ComponentTypeRef a, ComponentTypeRef b) |
Public Attributes | |
bool | IsValid => RawValue != 0 |
Returns true if this component type reference points to any type. More... | |
uint | RawValue |
The hash of the component type name. More... | |
Static Public Attributes | |
const int | SIZE = sizeof(uint) |
A persistent and serializable reference to a component type. Is valid as long as the component type is not renamed.
|
inlinestatic |
Creates a new component type reference from a raw value.
rawValue |
|
static |
Creates a new component type reference from a type.
T | : | unmanaged | |
T | : | IComponent | |
T | : | FromTypeName | |
T | : | typeof | |
T | : | T | |
T | : | Name |
|
inlinestatic |
Creates a new component type reference from a type name.
typeName |
|
inline |
Returns true if this component type reference points to T .
T |
T | : | unmanaged | |
T | : | IComponent |
|
inline |
Returns true if this component type reference points to type .
type |
uint ComponentTypeRef.RawValue |
The hash of the component type name.
bool ComponentTypeRef.IsValid => RawValue != 0 |
Returns true if this component type reference points to any type.