Photon Quantum 3.0.0

Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Quantum.MapEntityLink Struct Reference

Map entity link can be used inside a component to reference an entity from the map. More...

Inheritance diagram for Quantum.MapEntityLink:
Quantum.IComponent

Static Public Member Functions

static void Serialize (void *ptr, FrameSerializer stream)
 Serialized the map entity link on the snapshot. More...
 

Public Attributes

int Index
 The index of the entity inside the map. More...
 

Static Public Attributes

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...
 

Detailed Description

Map entity link can be used inside a component to reference an entity from the map.

Member Function Documentation

◆ Serialize()

static void Quantum.MapEntityLink.Serialize ( void *  ptr,
FrameSerializer  stream 
)
inlinestatic

Serialized the map entity link on the snapshot.

Parameters
ptrPointer to data
streamThe stream to serialize to

Member Data Documentation

◆ SIZE

const int Quantum.MapEntityLink.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.

◆ Index

int Quantum.MapEntityLink.Index

The index of the entity inside the map.