Photon Quantum 3.0.0

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

The Transform2DVertical is an entity component pseudo-3D height and offset for an entity. More...

Inheritance diagram for Quantum.Transform2DVertical:
Quantum.IComponent

Static Public Member Functions

static void Serialize (void *ptr, FrameSerializer serializer)
 Serializes a Transform2DVertical into a FrameSerializer. More...
 

Public Attributes

FP Height
 The height. More...
 
FP Position
 The position or vertical offset of the transform. More...
 

Static Public Attributes

const int SIZE = FP.SIZE + FP.SIZE
 The component size in bytes. More...
 

Detailed Description

The Transform2DVertical is an entity component pseudo-3D height and offset for an entity.

Member Function Documentation

◆ Serialize()

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

Serializes a Transform2DVertical into a FrameSerializer.

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

Member Data Documentation

◆ SIZE

const int Quantum.Transform2DVertical.SIZE = FP.SIZE + FP.SIZE
static

The component size in bytes.

◆ Position

FP Quantum.Transform2DVertical.Position

The position or vertical offset of the transform.

◆ Height

FP Quantum.Transform2DVertical.Height

The height.