|
VR-Engage
2.2
|
ChannelInfo represents a communication channel in the chat system, characterized by a name, associated force (friendly, enemy, etc.), and activation status. This structure is designed to be accessible from QML through the Q_PROPERTY mechanism, allowing the UI to display and interact with channel information.
#include <vreChatWindow.h>
Public Member Functions | |
| ChannelInfo ()=default | |
| ChannelInfo (QString ch, int f, bool a) | |
Public Attributes | |
| QString | myChannelName |
| int | myForce = 0 |
| bool | myActive = false |
| QStringList | myEntities |
Properties | |
| QString | channel |
| int | force |
| bool | active |
| QStringList | entities |
|
default |
Default constructor.
|
inline |
Constructor with parameters.
| ch | Channel name |
| f | Force identifier (friendly=1, enemy=2, neutral=3, etc.) |
| a | Activation status (true if channel is currently active) |
References myActive, myChannelName, and myForce.
| QString makVre::ChannelInfo::myChannelName |
Name of the communication channel.
Referenced by ChannelInfo().
| int makVre::ChannelInfo::myForce = 0 |
Force identifier associated with this channel (Typically: 1=friendly, 2=enemy, 3=neutral, etc.)
Referenced by ChannelInfo().
| bool makVre::ChannelInfo::myActive = false |
Flag indicating if this channel is currently active.
Referenced by ChannelInfo().
| QStringList makVre::ChannelInfo::myEntities |
List of entities (participants) in this channel.
| QString makVre::ChannelInfo::channel |
Channel name property exposed to QML.
| int makVre::ChannelInfo::force |
Force identifier property exposed to QML.
| bool makVre::ChannelInfo::active |
Channel activation status property exposed to QML.
| QStringList makVre::ChannelInfo::entities |
List of entities in this channel property exposed to QML.