VR-Engage  2.3
Loading...
Searching...
No Matches
ownershipPlayerEngaged.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/vrfOwnershipTransfer.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vrfutil/uuid.h>
18#include <vlpi/entityIdentifier.h>
19
20namespace makVre
21{
22//! \brief Message type identifier for OwnershipPlayerEngagedMessage.
23constexpr const char* OwnershipPlayerEngagedMessageType = "vrf.ownership.playerEngaged";
24
25/**
26 * \class OwnershipPlayerEngagedMessage
27 * \brief Published by chooseRoleState when the player begins a non-spectator role. Tells the connector to cancel a pending idle divest only when the re-engaged entity matches the entity awaiting hand-back.
28 *
29 * Message type: "vrf.ownership.playerEngaged"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Data payload for OwnershipPlayerEngagedMessage.
39 {
40 //! \brief Default constructor.
42
43 //! \name Data Members
44 //! \{
45
46 //! UUID of the re-engaged entity. Included with entityId so the connector can identify the pending idle release.
48
49 //! DIS entity triple of the re-engaged entity. The connector matches it to the entity awaiting idle release.
50 DtEntityIdentifier myEntityId;
51 //! \}
52
53 //! \name Operators
54 //! \{
55 bool operator==(const OwnershipPlayerEngagedData& rhs) const;
56 bool operator!=(const OwnershipPlayerEngagedData& rhs) const;
57 //! \}
58 };
59
60 //! \brief Destructor.
62
63 //! \name Static Creators
64 //! \{
65 //! \brief Create a new default instance.
66 //! \return A dynamically allocated default message. Caller takes ownership.
68
69 //! \brief Create a copy of the given message.
70 //! \param origMsg The message to copy. Must not be null.
71 //! \return A dynamically allocated copy. Caller takes ownership.
73
74 //! \brief Create a new message initialized with the given data.
75 //! \param data The data payload to initialize the message with.
76 //! \return A dynamically allocated message. Caller takes ownership.
78 //! \}
79
80 //! \name Type Identity
81 //! \{
82 //! \brief Get the message type string for this message class.
83 static const std::string& theType();
84
85 //! \brief Get the message identifier for this message class.
87
88 //! \brief Get the version number for this message class.
90
91 //! \brief Get the message type string for this instance.
92 virtual const std::string& type() const override;
93
94 //! \brief Get the message identifier for this instance.
95 virtual const makVre::DtVreMessageId& messageId() const override;
96 //! \}
97
98 //! \name Accessors
99 //! \{
100 //! \name EntityUuid
101 //! \{
102 //! \copydoc OwnershipPlayerEngagedData::myEntityUuid
103 virtual const DtUUID& getEntityUuid() const;
104 //! \copydoc OwnershipPlayerEngagedData::myEntityUuid
105 virtual void setEntityUuid(const DtUUID& val);
106 //! \}
107
108 //! \name EntityId
109 //! \{
110 //! \copydoc OwnershipPlayerEngagedData::myEntityId
111 virtual const DtEntityIdentifier& getEntityId() const;
112 //! \copydoc OwnershipPlayerEngagedData::myEntityId
113 virtual void setEntityId(const DtEntityIdentifier& val);
114 //! \}
115 //! \}
116
117 //! \name Serialization
118 //! \{
119 //! \copydoc makVre::DtVreMessage::messageSize()
120 virtual int messageSize() const override;
121
122 //! \brief Decode a message from a byte buffer.
123 //! \param buffer The raw byte buffer to decode from.
124 //! \param length The length of the buffer in bytes.
125 //! \return A dynamically allocated decoded message. Caller takes ownership.
126 static makVre::DtVreMessage* decode(char* buffer, int length);
127
128 //! \brief Get a copy of the message data.
130
131 //! \brief Get a copy of the message data (const).
133 //! \}
134
135 //! \name Operators
136 //! \{
139 //! \}
140
141protected:
143
144 //! \copydoc makVre::DtVreMessage::serialize()
145 virtual void serialize(DtStreamWriter& writer) const override;
146
147 //! \copydoc makVre::DtVreMessage::deserialize()
148 virtual void deserialize(DtStreamReader& reader) override;
149
150protected:
153
155};
156} // namespace makVre
157
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
static makVre::DtVreMessageId theMessageId
Definition ownershipPlayerEngaged.h:151
virtual const DtUUID & getEntityUuid() const
UUID of the re-engaged entity. Included with entityId so the connector can identify the pending idle ...
static UInt64 theVersionNumber()
Get the version number for this message class.
virtual const std::string & type() const override
Get the message type string for this instance.
virtual const DtEntityIdentifier & getEntityId() const
DIS entity triple of the re-engaged entity. The connector matches it to the entity awaiting idle rele...
virtual void setEntityUuid(const DtUUID &val)
UUID of the re-engaged entity. Included with entityId so the connector can identify the pending idle ...
bool operator!=(const OwnershipPlayerEngagedMessage &rhs) const
static makVre::DtVreMessage * decode(char *buffer, int length)
Decode a message from a byte buffer.
static const std::string & theType()
Get the message type string for this instance.
static OwnershipPlayerEngagedMessage * createFrom(OwnershipPlayerEngagedMessage *origMsg)
Create a copy of the given message.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
OwnershipPlayerEngagedData getData()
Get a copy of the message data.
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual int messageSize() const override
Get a copy of the message data.
virtual void setEntityId(const DtEntityIdentifier &val)
DIS entity triple of the re-engaged entity. The connector matches it to the entity awaiting idle rele...
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
bool operator==(const OwnershipPlayerEngagedMessage &rhs) const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
static OwnershipPlayerEngagedMessage * createFromData(const OwnershipPlayerEngagedData data)
Create a new message initialized with the given data.
static UInt64 theVersion
Definition ownershipPlayerEngaged.h:152
virtual ~OwnershipPlayerEngagedMessage() override
Destructor.
static OwnershipPlayerEngagedMessage * create()
Create a copy of the given message.
OwnershipPlayerEngagedData myData
Definition ownershipPlayerEngaged.h:154
OwnershipPlayerEngagedData getData() const
Get a copy of the message data (const).
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
constexpr const char * OwnershipPlayerEngagedMessageType
Message type identifier for OwnershipPlayerEngagedMessage.
Definition ownershipPlayerEngaged.h:23
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
Data payload for OwnershipPlayerEngagedMessage.
Definition ownershipPlayerEngaged.h:39
DtUUID myEntityUuid
UUID of the re-engaged entity. Included with entityId so the connector can identify the pending idle ...
Definition ownershipPlayerEngaged.h:47
bool operator==(const OwnershipPlayerEngagedData &rhs) const
bool operator!=(const OwnershipPlayerEngagedData &rhs) const
DtEntityIdentifier myEntityId
DIS entity triple of the re-engaged entity. The connector matches it to the entity awaiting idle rele...
Definition ownershipPlayerEngaged.h:50
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.