diff --git a/domain-server/src/DomainServer.cpp b/domain-server/src/DomainServer.cpp index c861e678a0..6e4a4cdff4 100644 --- a/domain-server/src/DomainServer.cpp +++ b/domain-server/src/DomainServer.cpp @@ -144,7 +144,7 @@ void DomainServer::readAvailableDatagrams() { } } - const QSet STATICALLY_ASSIGNED_NODES = QSet() << NodeType::AudioMixer + const NodeSet STATICALLY_ASSIGNED_NODES = NodeSet() << NodeType::AudioMixer << NodeType::AvatarMixer << NodeType::VoxelServer << NodeType::ParticleServer << NodeType::MetavoxelServer; diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index eccf2dae10..62ca9a2af4 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -229,7 +229,7 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : #endif // tell the NodeList instance who to tell the domain server we care about - nodeList->addSetOfNodeTypesToNodeInterestSet(QSet() << NodeType::AudioMixer << NodeType::AvatarMixer + nodeList->addSetOfNodeTypesToNodeInterestSet(NodeSet() << NodeType::AudioMixer << NodeType::AvatarMixer << NodeType::VoxelServer << NodeType::ParticleServer << NodeType::MetavoxelServer); @@ -648,8 +648,7 @@ void Application::resetProfile(const QString& username) { updateWindowTitle(); } -void Application::controlledBroadcastToNodes(const QByteArray& packet, - const QSet& destinationNodeTypes) { +void Application::controlledBroadcastToNodes(const QByteArray& packet, const NodeSet& destinationNodeTypes) { foreach(NodeType_t type, destinationNodeTypes) { // Intercept data to voxel server when voxels are disabled if (type == NodeType::VoxelServer && !Menu::getInstance()->isOptionChecked(MenuOption::Voxels)) { @@ -657,7 +656,7 @@ void Application::controlledBroadcastToNodes(const QByteArray& packet, } // Perform the broadcast for one type - int nReceivingNodes = NodeList::getInstance()->broadcastToNodes(packet, QSet() << type); + int nReceivingNodes = NodeList::getInstance()->broadcastToNodes(packet, NodeSet() << type); // Feed number of bytes to corresponding channel of the bandwidth meter, if any (done otherwise) BandwidthMeter::ChannelIndex channel; @@ -1332,7 +1331,7 @@ void Application::wheelEvent(QWheelEvent* event) { void Application::sendPingPackets() { QByteArray pingPacket = NodeList::getInstance()->constructPingPacket(); - getInstance()->controlledBroadcastToNodes(pingPacket, QSet() << NodeType::VoxelServer + getInstance()->controlledBroadcastToNodes(pingPacket, NodeSet() << NodeType::VoxelServer << NodeType::ParticleServer << NodeType::AudioMixer << NodeType::AvatarMixer << NodeType::MetavoxelServer); @@ -2363,7 +2362,7 @@ void Application::updateAvatar(float deltaTime) { QByteArray avatarData = byteArrayWithPopluatedHeader(PacketTypeAvatarData); avatarData.append(_myAvatar.toByteArray()); - controlledBroadcastToNodes(avatarData, QSet() << NodeType::AvatarMixer); + controlledBroadcastToNodes(avatarData, NodeSet() << NodeType::AvatarMixer); // Update _viewFrustum with latest camera and view frustum data... // NOTE: we get this from the view frustum, to make it simpler, since the diff --git a/interface/src/Application.h b/interface/src/Application.h index 8daad301bf..d38c3675d7 100644 --- a/interface/src/Application.h +++ b/interface/src/Application.h @@ -175,7 +175,7 @@ public: Profile* getProfile() { return &_profile; } void resetProfile(const QString& username); - void controlledBroadcastToNodes(const QByteArray& packet, const QSet& destinationNodeTypes); + void controlledBroadcastToNodes(const QByteArray& packet, const NodeSet& destinationNodeTypes); void setupWorldLight(); diff --git a/libraries/shared/src/NodeList.cpp b/libraries/shared/src/NodeList.cpp index aedfef9a3d..9a1317de88 100644 --- a/libraries/shared/src/NodeList.cpp +++ b/libraries/shared/src/NodeList.cpp @@ -263,7 +263,7 @@ void NodeList::addNodeTypeToInterestSet(NodeType_t nodeTypeToAdd) { _nodeTypesOfInterest << nodeTypeToAdd; } -void NodeList::addSetOfNodeTypesToNodeInterestSet(const QSet& setOfNodeTypes) { +void NodeList::addSetOfNodeTypesToNodeInterestSet(const NodeSet& setOfNodeTypes) { _nodeTypesOfInterest.unite(setOfNodeTypes); } @@ -621,7 +621,7 @@ SharedNodePointer NodeList::addOrUpdateNode(const QUuid& uuid, char nodeType, } unsigned NodeList::broadcastToNodes(const QByteArray& packet, - const QSet& destinationNodeTypes) { + const NodeSet& destinationNodeTypes) { unsigned n = 0; foreach (const SharedNodePointer& node, getNodeHash()) {