Represents the ID and type of an object, packed in 32 bits.
Inherits IComparable, and IEquatable< MBGUID >.
|
| MBGUID (uint id) |
| Initializes a new instance of the MMOGUID struct. Should contain 4 bits of type information, then 28 bits of sub ID.
|
|
| MBGUID (uint objType, uint subId) |
| Initializes a new instance of the MMOGUID struct.
|
|
int | CompareTo (object a) |
| Compares an object with this MMOGUID.
|
|
uint | GetTypeIndex () |
|
override int | GetHashCode () |
| Hash code override.
|
|
override string | ToString () |
|
override bool | Equals (object obj) |
| Compares an object with this MMOGUID.
|
|
bool | Equals (MBGUID other) |
|
|
uint | InternalValue [get] |
| Gets the internal int value.
|
|
uint | SubId [get] |
| Gets the ID of the object.
|
|
◆ MBGUID() [1/2]
TaleWorlds.ObjectSystem.MBGUID.MBGUID |
( |
uint |
id | ) |
|
- Parameters
-
id | internal ID of the object |
◆ MBGUID() [2/2]
TaleWorlds.ObjectSystem.MBGUID.MBGUID |
( |
uint |
objType, |
|
|
uint |
subId |
|
) |
| |
- Parameters
-
objType | Type of the object |
subId | ID of the object |
◆ operator==()
static bool TaleWorlds.ObjectSystem.MBGUID.operator== |
( |
MBGUID |
id1, |
|
|
MBGUID |
id2 |
|
) |
| |
|
static |
- Parameters
-
id1 | An MMOGUID object 1 |
id2 | An MMOGUID object 2 |
- Returns
- True if type and ID is equal, false otherwise
◆ operator!=()
static bool TaleWorlds.ObjectSystem.MBGUID.operator!= |
( |
MBGUID |
id1, |
|
|
MBGUID |
id2 |
|
) |
| |
|
static |
- Parameters
-
id1 | An MMOGUID object 1 |
id2 | An MMOGUID object 2 |
- Returns
- False if type and ID is equal, true otherwise
◆ operator<()
static bool TaleWorlds.ObjectSystem.MBGUID.operator< |
( |
MBGUID |
id1, |
|
|
MBGUID |
id2 |
|
) |
| |
|
static |
◆ operator>()
static bool TaleWorlds.ObjectSystem.MBGUID.operator> |
( |
MBGUID |
id1, |
|
|
MBGUID |
id2 |
|
) |
| |
|
static |
◆ operator<=()
static bool TaleWorlds.ObjectSystem.MBGUID.operator<= |
( |
MBGUID |
id1, |
|
|
MBGUID |
id2 |
|
) |
| |
|
static |
◆ operator>=()
static bool TaleWorlds.ObjectSystem.MBGUID.operator>= |
( |
MBGUID |
id1, |
|
|
MBGUID |
id2 |
|
) |
| |
|
static |
◆ GetHash2()
static long TaleWorlds.ObjectSystem.MBGUID.GetHash2 |
( |
MBGUID |
id1, |
|
|
MBGUID |
id2 |
|
) |
| |
|
static |
◆ CompareTo()
int TaleWorlds.ObjectSystem.MBGUID.CompareTo |
( |
object |
a | ) |
|
- Parameters
-
a | MMOGUID object to be compared |
- Returns
- 0 if equal, 1 if greater, -1 if less. Throws if object is not MMOGUID
◆ GetTypeIndex()
uint TaleWorlds.ObjectSystem.MBGUID.GetTypeIndex |
( |
| ) |
|
◆ GetHashCode()
override int TaleWorlds.ObjectSystem.MBGUID.GetHashCode |
( |
| ) |
|
- Returns
- Hash code of the object
◆ ToString()
override string TaleWorlds.ObjectSystem.MBGUID.ToString |
( |
| ) |
|
◆ Equals() [1/2]
override bool TaleWorlds.ObjectSystem.MBGUID.Equals |
( |
object |
obj | ) |
|
- Parameters
-
obj | MMOGUID object to be compared |
- Returns
- True if equal, false otherwise. Throws if object is not MMOGUID
◆ Equals() [2/2]
bool TaleWorlds.ObjectSystem.MBGUID.Equals |
( |
MBGUID |
other | ) |
|
◆ InternalValue
uint TaleWorlds.ObjectSystem.MBGUID.InternalValue |
|
get |
◆ SubId
uint TaleWorlds.ObjectSystem.MBGUID.SubId |
|
get |