Represents a unique identifier for an asset.
More...
Inherits IEquatable< AssetGuid >, and IComparable< AssetGuid >.
|
| AssetGuid (Int64 value) |
| Initializes a new instance of the AssetGuid struct. More...
|
|
int | CompareTo (AssetGuid other) |
| Compares the current AssetGuid with another AssetGuid and returns an integer that indicates whether the current AssetGuid is less than, equal to, or greater than the other AssetGuid. More...
|
|
bool | Equals (AssetGuid other) |
| Determines whether the specified AssetGuid is equal to the current AssetGuid. More...
|
|
override Boolean | Equals (Object obj) |
| Determines whether the specified object is equal to the current AssetGuid. More...
|
|
override Int32 | GetHashCode () |
| Returns the hash code for this AssetGuid. More...
|
|
override string | ToString () |
| Returns a string representation of the AssetGuid. More...
|
|
string | ToString (bool includeBrackets) |
| Returns a string representation of the AssetGuid. More...
|
|
|
const Int64 | DynamicBit = 1L << 63 |
| The bit that indicates that the AssetGuid is dynamic (reserved for DynamicAssetDB assets). More...
|
|
const Int64 | Invalid = 0L |
| Invalid value of the AssetGuid. More...
|
|
const Int64 | None = Invalid |
| None value of the AssetGuid. More...
|
|
const Int64 | ReservedBits = 3L << ReservedBitsShift |
| The reserved bits of the AssetGuid. More...
|
|
const Int64 | RuntimeBit = 1L << 62 |
| The bit that indicates that the AssetGuid is runtime generated. More...
|
|
const int | SIZE = sizeof(ulong) |
| The size of the AssetGuid in bytes. More...
|
|
Represents a unique identifier for an asset.
◆ AssetGuid()
Quantum.AssetGuid.AssetGuid |
( |
Int64 |
value | ) |
|
|
inline |
Initializes a new instance of the AssetGuid struct.
- Parameters
-
value | The value of the AssetGuid. |
◆ NewGuid()
static AssetGuid Quantum.AssetGuid.NewGuid |
( |
| ) |
|
|
inlinestatic |
Generates a new random AssetGuid.
- Returns
- A new random AssetGuid.
◆ Serialize()
Serializes the AssetGuid.
- Parameters
-
ptr | A pointer to the AssetGuid. |
serializer | The serializer to use. |
◆ Print()
static void Quantum.AssetGuid.Print |
( |
void * |
ptr, |
|
|
FramePrinter |
printer |
|
) |
| |
|
inlinestatic |
Prints the AssetGuid.
- Parameters
-
ptr | A pointer to the AssetGuid. |
printer | The printer to use. |
◆ Equals() [1/2]
bool Quantum.AssetGuid.Equals |
( |
AssetGuid |
other | ) |
|
|
inline |
Determines whether the specified AssetGuid is equal to the current AssetGuid.
- Parameters
-
other | The AssetGuid to compare with the current AssetGuid. |
- Returns
true
if the specified AssetGuid is equal to the current AssetGuid; otherwise, false
.
◆ CompareTo()
int Quantum.AssetGuid.CompareTo |
( |
AssetGuid |
other | ) |
|
|
inline |
Compares the current AssetGuid with another AssetGuid and returns an integer that indicates whether the current AssetGuid is less than, equal to, or greater than the other AssetGuid.
- Parameters
-
other | The AssetGuid to compare with the current AssetGuid. |
- Returns
- A value that indicates the relative order of the AssetGuids being compared.
◆ Equals() [2/2]
override Boolean Quantum.AssetGuid.Equals |
( |
Object |
obj | ) |
|
|
inline |
Determines whether the specified object is equal to the current AssetGuid.
- Parameters
-
obj | The object to compare with the current AssetGuid. |
- Returns
true
if the specified object is equal to the current AssetGuid; otherwise, false
.
◆ GetHashCode()
override Int32 Quantum.AssetGuid.GetHashCode |
( |
| ) |
|
|
inline |
Returns the hash code for this AssetGuid.
- Returns
- A 32-bit signed integer hash code.
◆ operator==()
Determines whether two AssetGuids are equal.
- Parameters
-
a | The first AssetGuid to compare. |
b | The second AssetGuid to compare. |
- Returns
true
if the AssetGuids are equal; otherwise, false
.
◆ operator!=()
Determines whether two AssetGuids are not equal.
- Parameters
-
a | The first AssetGuid to compare. |
b | The second AssetGuid to compare. |
- Returns
true
if the AssetGuids are not equal; otherwise, false
.
◆ operator AssetGuid()
static implicit Quantum.AssetGuid.operator AssetGuid |
( |
Int64 |
value | ) |
|
|
inlinestatic |
Implicitly converts a long value to an AssetGuid.
- Parameters
-
value | The long value to convert. |
- Returns
- An AssetGuid with the specified value.
◆ ToString() [1/2]
override string Quantum.AssetGuid.ToString |
( |
| ) |
|
|
inline |
Returns a string representation of the AssetGuid.
- Returns
- A string representation of the AssetGuid.
◆ ToString() [2/2]
string Quantum.AssetGuid.ToString |
( |
bool |
includeBrackets | ) |
|
|
inline |
Returns a string representation of the AssetGuid.
- Parameters
-
includeBrackets | Indicates whether to include brackets in the string representation. |
- Returns
- A string representation of the AssetGuid.
◆ TryParse()
static bool Quantum.AssetGuid.TryParse |
( |
string |
str, |
|
|
out AssetGuid |
result, |
|
|
bool |
includeBrackets |
|
) |
| |
|
inlinestatic |
Tries to parse a string representation of an AssetGuid.
- Parameters
-
str | The string representation of the AssetGuid. |
result | When this method returns, contains the parsed AssetGuid if the parsing succeeded, or default if the parsing failed. |
includeBrackets | Indicates whether the string representation includes brackets. |
- Returns
true
if the parsing succeeded; otherwise, false
.
◆ SIZE
const int Quantum.AssetGuid.SIZE = sizeof(ulong) |
|
static |
The size of the AssetGuid in bytes.
◆ DynamicBit
const Int64 Quantum.AssetGuid.DynamicBit = 1L << 63 |
|
static |
The bit that indicates that the AssetGuid is dynamic (reserved for DynamicAssetDB assets).
◆ RuntimeBit
const Int64 Quantum.AssetGuid.RuntimeBit = 1L << 62 |
|
static |
The bit that indicates that the AssetGuid is runtime generated.
◆ ReservedBits
const Int64 Quantum.AssetGuid.ReservedBits = 3L << ReservedBitsShift |
|
static |
The reserved bits of the AssetGuid.
◆ Invalid
const Int64 Quantum.AssetGuid.Invalid = 0L |
|
static |
Invalid value of the AssetGuid.
◆ None
const Int64 Quantum.AssetGuid.None = Invalid |
|
static |
None value of the AssetGuid.
◆ Value
Int64 Quantum.AssetGuid.Value |
Raw value of the AssetGuid.
◆ IsValid
Returns true
if the AssetGuid is valid (non-zero).
◆ IsRuntimeGenerated
Returns true
if the AssetGuid is valid and runtime generated.
◆ IsDynamic
bool Quantum.AssetGuid.IsDynamic |
|
getset |
Returns true
if the AssetGuid is valid and dynamic (reserved for DynamicAssetDB assets).
◆ Type