Photon Quantum 3.0.0

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

The Quantum physics layer value used with LayerMask. More...

Public Member Functions

override int GetHashCode ()
 Overrides the hash code generation of this type. More...
 

Static Public Member Functions

static implicit operator Int32 (LayerValue value)
 Cast a layer value to an integer. More...
 
static implicit operator LayerValue (Int32 value)
 Cast a integer to a layer value. More...
 
static void Serialize (void *ptr, FrameSerializer serializer)
 Serializes a LayerValue into a FrameSerializer to write or read from a frame snapshot. More...
 

Public Attributes

Int32 Layer
 The layer stored on the frame. 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

The Quantum physics layer value used with LayerMask.

Member Function Documentation

◆ operator Int32()

static implicit Quantum.LayerValue.operator Int32 ( LayerValue  value)
inlinestatic

Cast a layer value to an integer.

Parameters
valueInput layer value

◆ operator LayerValue()

static implicit Quantum.LayerValue.operator LayerValue ( Int32  value)
inlinestatic

Cast a integer to a layer value.

Parameters
valueInput int

◆ Serialize()

static void Quantum.LayerValue.Serialize ( void *  ptr,
FrameSerializer  serializer 
)
inlinestatic

Serializes a LayerValue into a FrameSerializer to write or read from a frame snapshot.

Parameters
ptrThe pointer to the LayerValue.
serializerThe FrameSerializer instance into which the struct will be serialized.

◆ GetHashCode()

override int Quantum.LayerValue.GetHashCode ( )
inline

Overrides the hash code generation of this type.

Returns
A hash code of the current state of this instance.

Member Data Documentation

◆ SIZE

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

◆ Layer

Int32 Quantum.LayerValue.Layer

The layer stored on the frame.