VR-Engage  2.3
Loading...
Searching...
No Matches
playerStationCreationStatus.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2026 MAK Technologies, Inc.
3** All rights reserved.
4*********************************************************************************/
5
6/**
7* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8* !!!!!!!!!This is an auto-generated file. Any changes will be destroyed!!!!!!!!!!!
9* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10* Generated from: /home/data/exports/DEV-CAM-BML-305/nightly/3375/libsrc/framework/vreMessages/playerStationCreation.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17
18namespace makVre
19{
20//! \brief Message type identifier for PlayerStationCreationStatusMessage.
21constexpr const char* PlayerStationCreationStatusMessageType = "playerStation.creationStatus";
22
23/**
24 * \class PlayerStationCreationStatusMessage
25 * \brief Broadcast by LOADING_PLAYER_STATE at each substantial phase transition during player station creation. Components such as DtEntityControlLogic can register handlers for this message to react to specific phases (e.g., sending VrfTakeControlOf when ComponentsReady is received).
26 *
27 * Message type: "playerStation.creationStatus"
28 *
29 * \note This is an auto-generated class. Do not modify directly.
30 */
32{
33public:
34 //! \brief CreationPhase enumeration.
45
46 //! \brief Data payload for PlayerStationCreationStatusMessage.
48 {
49 //! \brief Default constructor.
51
52 //! \name Data Members
53 //! \{
54
57 //! \}
58
59 //! \name Operators
60 //! \{
63 //! \}
64 };
65
66 //! \brief Destructor.
68
69 //! \name Static Creators
70 //! \{
71 //! \brief Create a new default instance.
72 //! \return A dynamically allocated default message. Caller takes ownership.
74
75 //! \brief Create a copy of the given message.
76 //! \param origMsg The message to copy. Must not be null.
77 //! \return A dynamically allocated copy. Caller takes ownership.
79
80 //! \brief Create a new message initialized with the given data.
81 //! \param data The data payload to initialize the message with.
82 //! \return A dynamically allocated message. Caller takes ownership.
84 //! \}
85
86 //! \name Type Identity
87 //! \{
88 //! \brief Get the message type string for this message class.
89 static const std::string& theType();
90
91 //! \brief Get the message identifier for this message class.
93
94 //! \brief Get the version number for this message class.
96
97 //! \brief Get the message type string for this instance.
98 virtual const std::string& type() const override;
99
100 //! \brief Get the message identifier for this instance.
101 virtual const makVre::DtVreMessageId& messageId() const override;
102 //! \}
103
104 //! \name Accessors
105 //! \{
107 virtual void setLastPhase(CreationPhase val);
108
111 //! \}
112
113 //! \name Serialization
114 //! \{
115 //! \copydoc makVre::DtVreMessage::messageSize()
116 virtual int messageSize() const override;
117
118 //! \brief Decode a message from a byte buffer.
119 //! \param buffer The raw byte buffer to decode from.
120 //! \param length The length of the buffer in bytes.
121 //! \return A dynamically allocated decoded message. Caller takes ownership.
122 static makVre::DtVreMessage* decode(char* buffer, int length);
123
124 //! \brief Get a copy of the message data.
126
127 //! \brief Get a copy of the message data (const).
129 //! \}
130
131 //! \name Operators
132 //! \{
135 //! \}
136
137protected:
139
140 //! \copydoc makVre::DtVreMessage::serialize()
141 virtual void serialize(DtStreamWriter& writer) const override;
142
143 //! \copydoc makVre::DtVreMessage::deserialize()
144 virtual void deserialize(DtStreamReader& reader) override;
145
146protected:
149
151};
152} // namespace makVre
153
Reader class for decoding values from a byte array.
Definition byteStream.h:43
Writer class for encoding values into a byte array.
Definition byteStream.h:166
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
PlayerStationCreationStatusData myData
Definition playerStationCreationStatus.h:150
CreationPhase
CreationPhase enumeration.
Definition playerStationCreationStatus.h:36
@ CreationPhase_Creating
Definition playerStationCreationStatus.h:38
@ CreationPhase_None
Definition playerStationCreationStatus.h:37
@ CreationPhase_WaitingForComponents
Definition playerStationCreationStatus.h:41
@ CreationPhase_ComponentsReady
Definition playerStationCreationStatus.h:42
@ CreationPhase_PostInitializing
Definition playerStationCreationStatus.h:39
@ CreationPhase_InitializingMenus
Definition playerStationCreationStatus.h:40
@ CreationPhase_Failed
Definition playerStationCreationStatus.h:43
virtual ~PlayerStationCreationStatusMessage() override
Destructor.
virtual void setLastPhase(CreationPhase val)
virtual const std::string & type() const override
Get the message type string for this instance.
virtual CreationPhase getCurrentPhase() const
static makVre::DtVreMessageId theMessageId
Definition playerStationCreationStatus.h:147
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
PlayerStationCreationStatusData getData()
Get a copy of the message data.
static PlayerStationCreationStatusMessage * create()
Create a copy of the given message.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
bool operator==(const PlayerStationCreationStatusMessage &rhs) const
static UInt64 theVersion
Definition playerStationCreationStatus.h:148
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static PlayerStationCreationStatusMessage * createFromData(const PlayerStationCreationStatusData data)
Create a new message initialized with the given data.
virtual CreationPhase getLastPhase() const
static UInt64 theVersionNumber()
Get the version number for this message class.
PlayerStationCreationStatusData getData() const
Get a copy of the message data (const).
virtual int messageSize() const override
Get a copy of the message data.
virtual void setCurrentPhase(CreationPhase val)
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
bool operator!=(const PlayerStationCreationStatusMessage &rhs) const
static PlayerStationCreationStatusMessage * createFrom(PlayerStationCreationStatusMessage *origMsg)
Create a copy of the given message.
static const std::string & theType()
Get the message type string for this instance.
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
!
Definition glsVreMessageUtil.h:50
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
constexpr const char * PlayerStationCreationStatusMessageType
Message type identifier for PlayerStationCreationStatusMessage.
Definition playerStationCreationStatus.h:21
Data payload for PlayerStationCreationStatusMessage.
Definition playerStationCreationStatus.h:48
bool operator==(const PlayerStationCreationStatusData &rhs) const
bool operator!=(const PlayerStationCreationStatusData &rhs) const
CreationPhase myLastPhase
Definition playerStationCreationStatus.h:55
CreationPhase myCurrentPhase
Definition playerStationCreationStatus.h:56
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.