VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::PlayerStationCreationStatusMessage Class Reference

Detailed Description

Components such as DtEntityControlLogic can register handlers for this message to react to specific phases (e.g., sending VrfTakeControlOf when ComponentsReady is received).

Message type: "playerStation.creationStatus"

Note
This is an auto-generated class. Do not modify directly.

#include <playerStationCreationStatus.h>

Inheritance diagram for makVre::PlayerStationCreationStatusMessage:
[legend]

Classes

struct  PlayerStationCreationStatusData
 

Public Types

enum  CreationPhase {
  CreationPhase_None , CreationPhase_Creating , CreationPhase_PostInitializing , CreationPhase_InitializingMenus ,
  CreationPhase_WaitingForComponents , CreationPhase_ComponentsReady , CreationPhase_Failed
}
 

Public Member Functions

virtual ~PlayerStationCreationStatusMessage () override
 
Accessors
virtual CreationPhase getLastPhase () const
 
virtual void setLastPhase (CreationPhase val)
 
virtual CreationPhase getCurrentPhase () const
 
virtual void setCurrentPhase (CreationPhase val)
 
Operators
bool operator== (const PlayerStationCreationStatusMessage &rhs) const
 
bool operator!= (const PlayerStationCreationStatusMessage &rhs) const
 
- Public Member Functions inherited from makVre::DtVreMessage
 DtVreMessage ()
 
virtual ~DtVreMessage ()
 
virtual char * encode ()
 
virtual void encode (char *buffer, int bufferSize)
 
virtual const UInt64 originatingApplicationId () const
 
virtual void setOriginatingApplicationId (UInt64 appId)
 
virtual void setDelay (double delay)
 
virtual bool isDelayed ()
 
virtual void reduceDelay (double dt)
 
virtual const UInt64 versionNumber () const
 

Static Public Member Functions

Static Creators

Create a new default instance.

Returns
A dynamically allocated default message. Caller takes ownership.
static PlayerStationCreationStatusMessage * create ()
 
static PlayerStationCreationStatusMessage * createFrom (PlayerStationCreationStatusMessage *origMsg)
 
static PlayerStationCreationStatusMessage * createFromData (const PlayerStationCreationStatusData data)
 

Protected Member Functions

 PlayerStationCreationStatusMessage ()
 
virtual void serialize (DtStreamWriter &writer) const override
 
virtual void deserialize (DtStreamReader &reader) override
 

Protected Attributes

PlayerStationCreationStatusData myData
 
- Protected Attributes inherited from makVre::DtVreMessage
double myDelay
 
UInt64 myApplicationId
 
UInt64 myVersion
 

Static Protected Attributes

static makVre::DtVreMessageId theMessageId
 
static UInt64 theVersion
 

Type Identity

Get the message type string for this message class.

virtual const std::string & type () const override
 
virtual const makVre::DtVreMessageId & messageId () const override
 
static const std::string & theType ()
 
static const makVre::DtVreMessageId & theId ()
 
static UInt64 theVersionNumber ()
 

Serialization

Static decode function pattern for derived classes.

Note
Each derived class must implement a static decode function with the signature:
static DtVreMessage* decode(unsigned char* buffer, int length);
DtVreMessage()
Default constructor.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
This function is used by the message factory to create messages from raw data.

Gets the total size of the serialized message in bytes

Returns
Size of the message in bytes

This method calculates the total size of the message when serialized, including the base message header (message size, type hash, application ID, version, and delay) and any data added by derived classes.

Derived classes should override this method to include their own data size while calling the base class implementation.

virtual int messageSize () const override
 
PlayerStationCreationStatusData getData ()
 
PlayerStationCreationStatusData getData () const
 
static makVre::DtVreMessage * decode (char *buffer, int length)
 

Member Enumeration Documentation

◆ CreationPhase

CreationPhase enumeration.

Enumerator
CreationPhase_None 
CreationPhase_Creating 
CreationPhase_PostInitializing 
CreationPhase_InitializingMenus 
CreationPhase_WaitingForComponents 
CreationPhase_ComponentsReady 
CreationPhase_Failed 

Constructor & Destructor Documentation

◆ ~PlayerStationCreationStatusMessage()

virtual makVre::PlayerStationCreationStatusMessage::~PlayerStationCreationStatusMessage ( )
overridevirtual

Destructor.

◆ PlayerStationCreationStatusMessage()

makVre::PlayerStationCreationStatusMessage::PlayerStationCreationStatusMessage ( )
protected

Member Function Documentation

◆ create()

static PlayerStationCreationStatusMessage * makVre::PlayerStationCreationStatusMessage::create ( )
static

Create a copy of the given message.

Parameters
origMsgThe message to copy. Must not be null.
Returns
A dynamically allocated copy. Caller takes ownership.

References PlayerStationCreationStatusMessage().

◆ createFrom()

static PlayerStationCreationStatusMessage * makVre::PlayerStationCreationStatusMessage::createFrom ( PlayerStationCreationStatusMessage * origMsg)
static

Create a copy of the given message.

Parameters
origMsgThe message to copy. Must not be null.
Returns
A dynamically allocated copy. Caller takes ownership.

References PlayerStationCreationStatusMessage().

◆ createFromData()

static PlayerStationCreationStatusMessage * makVre::PlayerStationCreationStatusMessage::createFromData ( const PlayerStationCreationStatusData data)
static

Create a new message initialized with the given data.

Parameters
dataThe data payload to initialize the message with.
Returns
A dynamically allocated message. Caller takes ownership.

References PlayerStationCreationStatusMessage().

◆ theType()

static const std::string & makVre::PlayerStationCreationStatusMessage::theType ( )
static

Get the message type string for this instance.

◆ theId()

static const makVre::DtVreMessageId & makVre::PlayerStationCreationStatusMessage::theId ( )
static

Get the message identifier for this message class.

◆ theVersionNumber()

static UInt64 makVre::PlayerStationCreationStatusMessage::theVersionNumber ( )
static

Get the version number for this message class.

◆ type()

virtual const std::string & makVre::PlayerStationCreationStatusMessage::type ( ) const
overridevirtual

Get the message type string for this instance.

Implements makVre::DtVreMessage.

◆ messageId()

virtual const makVre::DtVreMessageId & makVre::PlayerStationCreationStatusMessage::messageId ( ) const
overridevirtual

Get the message identifier for this instance.

Implements makVre::DtVreMessage.

◆ getLastPhase()

virtual CreationPhase makVre::PlayerStationCreationStatusMessage::getLastPhase ( ) const
virtual

◆ setLastPhase()

virtual void makVre::PlayerStationCreationStatusMessage::setLastPhase ( CreationPhase val)
virtual

◆ getCurrentPhase()

virtual CreationPhase makVre::PlayerStationCreationStatusMessage::getCurrentPhase ( ) const
virtual

◆ setCurrentPhase()

virtual void makVre::PlayerStationCreationStatusMessage::setCurrentPhase ( CreationPhase val)
virtual

◆ messageSize()

virtual int makVre::PlayerStationCreationStatusMessage::messageSize ( ) const
overridevirtual

Get a copy of the message data.

Reimplemented from makVre::DtVreMessage.

◆ decode()

static makVre::DtVreMessage * makVre::PlayerStationCreationStatusMessage::decode ( char * buffer,
int length )
static

Decode a message from a byte buffer.

Parameters
bufferThe raw byte buffer to decode from.
lengthThe length of the buffer in bytes.
Returns
A dynamically allocated decoded message. Caller takes ownership.

◆ getData() [1/2]

PlayerStationCreationStatusData makVre::PlayerStationCreationStatusMessage::getData ( )

Get a copy of the message data.

◆ getData() [2/2]

PlayerStationCreationStatusData makVre::PlayerStationCreationStatusMessage::getData ( ) const

Get a copy of the message data (const).

◆ operator==()

bool makVre::PlayerStationCreationStatusMessage::operator== ( const PlayerStationCreationStatusMessage & rhs) const

◆ operator!=()

bool makVre::PlayerStationCreationStatusMessage::operator!= ( const PlayerStationCreationStatusMessage & rhs) const

◆ serialize()

virtual void makVre::PlayerStationCreationStatusMessage::serialize ( DtStreamWriter & writer) const
overrideprotectedvirtual

Serializes the message to a stream writer.

Parameters
writerReference to the stream writer

This method writes the message header fields to the stream writer. Derived classes should override this method to add their own fields while calling the base class implementation.

Reimplemented from makVre::DtVreMessage.

◆ deserialize()

virtual void makVre::PlayerStationCreationStatusMessage::deserialize ( DtStreamReader & reader)
overrideprotectedvirtual

Deserializes the message from a stream reader.

Parameters
readerReference to the stream reader

This method reads the message header fields from the stream reader. Derived classes should override this method to read their own fields while calling the base class implementation.

Reimplemented from makVre::DtVreMessage.

Member Data Documentation

◆ theMessageId

makVre::DtVreMessageId makVre::PlayerStationCreationStatusMessage::theMessageId
staticprotected

◆ theVersion

UInt64 makVre::PlayerStationCreationStatusMessage::theVersion
staticprotected

◆ myData

PlayerStationCreationStatusData makVre::PlayerStationCreationStatusMessage::myData
protected

The documentation for this class was generated from the following file: