VR-Engage  2.3
Loading...
Searching...
No Matches
WeaponConfigResponse.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/entity.lua
11*/
12#pragma once
13
16#include <vreMessages/export.h>
17#include <vlpi/entityIdentifier.h>
18#include <vector>
19
20namespace makVre
21{
22//! \brief Message type identifier for WeaponConfigResponseMessage.
23constexpr const char* WeaponConfigResponseMessageType = "entityState.weapons.weaponConfig";
24
25/**
26 * \class WeaponConfigResponseMessage
27 * \brief Reponse to WeaponConfigRequest, contains properties of the entity's weapons and the order in which they should be displayed.
28 *
29 * Message type: "entityState.weapons.weaponConfig"
30 *
31 * \note This is an auto-generated class. Do not modify directly.
32 */
34{
35public:
36
37 //! \brief Nested data structure.
39 {
40 //! \brief Default constructor.
42
43 //! \brief Get the serialized size in bytes.
44 int size() const;
45 //! \brief Serialize to a stream writer.
46 void serialize(DtStreamWriter& writer) const;
47 //! \brief Deserialize from a stream reader.
49 //! \brief Equality comparison operator.
50 bool operator==(const WeaponConfig& rhs) const;
51 //! \brief Inequality comparison operator.
52 bool operator!=(const WeaponConfig& rhs) const;
53
54 std::string myWeaponName;
55 std::string myInterfaceName;
56 std::string myCategory;
61 std::string myTargetingMethod;
62 std::string myFiringMethod;
63 DtEntityType myMunitionType;
64
65 };
66
67 //! \brief Data payload for WeaponConfigResponseMessage.
69 {
70 //! \brief Default constructor.
72
73 //! \name Data Members
74 //! \{
75
76 DtEntityIdentifier myEntityId;
77 std::vector<std::string> myDisplayOrder;
78 std::vector<WeaponConfig> myWeaponConfig;
79 //! \}
80
81 //! \name Operators
82 //! \{
83 bool operator==(const WeaponConfigResponseData& rhs) const;
84 bool operator!=(const WeaponConfigResponseData& rhs) const;
85 //! \}
86 };
87
88 //! \brief Destructor.
89 virtual ~WeaponConfigResponseMessage() override;
90
91 //! \name Static Creators
92 //! \{
93 //! \brief Create a new default instance.
94 //! \return A dynamically allocated default message. Caller takes ownership.
96
97 //! \brief Create a copy of the given message.
98 //! \param origMsg The message to copy. Must not be null.
99 //! \return A dynamically allocated copy. Caller takes ownership.
101
102 //! \brief Create a new message initialized with the given data.
103 //! \param data The data payload to initialize the message with.
104 //! \return A dynamically allocated message. Caller takes ownership.
106 //! \}
107
108 //! \name Type Identity
109 //! \{
110 //! \brief Get the message type string for this message class.
111 static const std::string& theType();
112
113 //! \brief Get the message identifier for this message class.
115
116 //! \brief Get the version number for this message class.
118
119 //! \brief Get the message type string for this instance.
120 virtual const std::string& type() const override;
121
122 //! \brief Get the message identifier for this instance.
123 virtual const makVre::DtVreMessageId& messageId() const override;
124 //! \}
125
126 //! \name Accessors
127 //! \{
128 virtual const DtEntityIdentifier& getEntityId() const;
129 virtual void setEntityId(const DtEntityIdentifier& val);
130
131 virtual const std::vector<std::string>& getDisplayOrder() const;
132 virtual void setDisplayOrder(const std::vector<std::string>& val);
133
134 virtual const std::vector<WeaponConfig>& getWeaponConfig() const;
135 virtual void setWeaponConfig(const std::vector<WeaponConfig>& val);
136 //! \}
137
138 //! \name Serialization
139 //! \{
140 //! \copydoc makVre::DtVreMessage::messageSize()
141 virtual int messageSize() const override;
142
143 //! \brief Decode a message from a byte buffer.
144 //! \param buffer The raw byte buffer to decode from.
145 //! \param length The length of the buffer in bytes.
146 //! \return A dynamically allocated decoded message. Caller takes ownership.
147 static makVre::DtVreMessage* decode(char* buffer, int length);
148
149 //! \brief Get a copy of the message data.
151
152 //! \brief Get a copy of the message data (const).
154 //! \}
155
156 //! \name Operators
157 //! \{
160 //! \}
161
162protected:
164
165 //! \copydoc makVre::DtVreMessage::serialize()
166 virtual void serialize(DtStreamWriter& writer) const override;
167
168 //! \copydoc makVre::DtVreMessage::deserialize()
169 virtual void deserialize(DtStreamReader& reader) override;
170
171protected:
174
176};
177} // namespace makVre
178
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
virtual void setWeaponConfig(const std::vector< WeaponConfig > &val)
WeaponConfigResponseData myData
Definition WeaponConfigResponse.h:175
virtual const std::vector< WeaponConfig > & getWeaponConfig() const
virtual const makVre::DtVreMessageId & messageId() const override
Get the message identifier for this instance.
virtual int messageSize() const override
Get a copy of the message data.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
static makVre::DtVreMessageId theMessageId
Definition WeaponConfigResponse.h:172
static UInt64 theVersionNumber()
Get the version number for this message class.
static WeaponConfigResponseMessage * createFrom(WeaponConfigResponseMessage *origMsg)
Create a copy of the given message.
static WeaponConfigResponseMessage * create()
Create a copy of the given message.
WeaponConfigResponseData getData() const
Get a copy of the message data (const).
bool operator!=(const WeaponConfigResponseMessage &rhs) const
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual ~WeaponConfigResponseMessage() override
Destructor.
virtual void setEntityId(const DtEntityIdentifier &val)
static UInt64 theVersion
Definition WeaponConfigResponse.h:173
virtual const DtEntityIdentifier & getEntityId() const
static const makVre::DtVreMessageId & theId()
Get the message identifier for this message class.
virtual const std::vector< std::string > & getDisplayOrder() const
bool operator==(const WeaponConfigResponseMessage &rhs) const
virtual const std::string & type() const override
Get the message type string for this instance.
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 WeaponConfigResponseMessage * createFromData(const WeaponConfigResponseData data)
Create a new message initialized with the given data.
virtual void setDisplayOrder(const std::vector< std::string > &val)
WeaponConfigResponseData getData()
Get a copy of the message data.
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 * WeaponConfigResponseMessageType
Message type identifier for WeaponConfigResponseMessage.
Definition WeaponConfigResponse.h:23
void deserialize(DtStreamReader &reader)
Deserialize from a stream reader.
DtEntityType myMunitionType
Definition WeaponConfigResponse.h:63
std::string myTargetingMethod
Definition WeaponConfigResponse.h:61
bool operator==(const WeaponConfig &rhs) const
Equality comparison operator.
std::string myInterfaceName
Definition WeaponConfigResponse.h:55
int myMaxRange
Definition WeaponConfigResponse.h:58
int size() const
Get the serialized size in bytes.
int myMinRange
Definition WeaponConfigResponse.h:57
void serialize(DtStreamWriter &writer) const
Serialize to a stream writer.
std::string myFiringMethod
Definition WeaponConfigResponse.h:62
std::string myCategory
Definition WeaponConfigResponse.h:56
int myOptimalRange
Definition WeaponConfigResponse.h:59
std::string myWeaponName
Definition WeaponConfigResponse.h:54
int myInitialAmmoCount
Definition WeaponConfigResponse.h:60
bool operator!=(const WeaponConfig &rhs) const
Inequality comparison operator.
Data payload for WeaponConfigResponseMessage.
Definition WeaponConfigResponse.h:69
std::vector< std::string > myDisplayOrder
Definition WeaponConfigResponse.h:77
bool operator!=(const WeaponConfigResponseData &rhs) const
bool operator==(const WeaponConfigResponseData &rhs) const
DtEntityIdentifier myEntityId
Definition WeaponConfigResponse.h:76
std::vector< WeaponConfig > myWeaponConfig
Definition WeaponConfigResponse.h:78
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.