Represents a Quantum entity that is part of a map.
More...
Inherits IEquatable< MapEntityId >.
|
bool | Equals (MapEntityId other) |
| Equal operator. More...
|
|
override Boolean | Equals (Object obj) |
| Override equals method to compare the entity id with another object. More...
|
|
override Int32 | GetHashCode () |
| Override GetHashCode method to return the hash code of the entity id. More...
|
|
override string | ToString () |
| Override ToString method to debug output readable class members. More...
|
|
|
const int | SIZE = 4 |
| The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed. More...
|
|
Represents a Quantum entity that is part of a map.
◆ Create()
static MapEntityId Quantum.MapEntityId.Create |
( |
int |
sceneIndex | ) |
|
|
static |
Creates a new entity id.
- Parameters
-
- Returns
- Map entity id
◆ Serialize()
static void Quantum.MapEntityId.Serialize |
( |
void * |
ptr, |
|
|
FrameSerializer |
serializer |
|
) |
| |
|
inlinestatic |
Serializes an entity id that is used inside a component. E.g. MapEntityLink.
- Parameters
-
ptr | Entity id data pointer |
serializer | Frame serializer |
◆ Print()
static void Quantum.MapEntityId.Print |
( |
void * |
ptr, |
|
|
FramePrinter |
printer |
|
) |
| |
|
inlinestatic |
Prints debug information about the entity id.
- Parameters
-
ptr | Entity id pointer |
printer | The printer |
◆ ToString()
override string Quantum.MapEntityId.ToString |
( |
| ) |
|
|
inline |
Override ToString method to debug output readable class members.
- Returns
- Debug string
◆ Equals() [1/2]
Equal operator.
- Parameters
-
- Returns
true
is the map entities are equal.
◆ GetHashCode()
override Int32 Quantum.MapEntityId.GetHashCode |
( |
| ) |
|
|
inline |
Override GetHashCode method to return the hash code of the entity id.
- Returns
- Hash of the entity id
◆ Equals() [2/2]
override Boolean Quantum.MapEntityId.Equals |
( |
Object |
obj | ) |
|
|
inline |
Override equals method to compare the entity id with another object.
- Parameters
-
obj | Other map entity id object |
- Returns
◆ operator==()
Overload equals operator to compare two map entity ids.
- Parameters
-
left | Map entity id a |
right | Map entity id b |
- Returns
true
is a and b are equal.
◆ operator!=()
Overload unequals operator to compare two map entity ids.
- Parameters
-
left | Map entity id a |
right | Map entity id b |
- Returns
true
is a and b are unequal.
◆ SIZE
const int Quantum.MapEntityId.SIZE = 4 |
|
static |
The size of the component (or struct/type) in-memory inside the Frame data-buffers or stack (when passed as value parameter). Not related to the snapshot payload this occupies, which is bit-packed and compressed.
◆ SceneIndexPlusOne
int Quantum.MapEntityId.SceneIndexPlusOne |
The index of the entity inside the map. Is 1-based, 0 means invalid.
◆ SceneIndex
int Quantum.MapEntityId.SceneIndex |
|
get |
The index of the entity inside the map.
◆ IsValid
bool Quantum.MapEntityId.IsValid |
|
get |
◆ Invalid
Returns a invalid entity id.