mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
use initializer list for packetReceiver register call
This commit is contained in:
parent
1c9f43e5aa
commit
e3b5972344
1 changed files with 2 additions and 2 deletions
|
@ -51,10 +51,10 @@ Agent::Agent(NLPacket& packet) :
|
|||
auto& packetReceiver = DependencyManager::get<NodeList>()->getPacketReceiver();
|
||||
|
||||
packetReceiver.registerPacketListenerForTypes(
|
||||
QSet<PacketType::Value>({ PacketType::MixedAudio, PacketType::SilentAudioFrame }),
|
||||
{ PacketType::MixedAudio, PacketType::SilentAudioFrame },
|
||||
this, "handleAudioPacket");
|
||||
packetReceiver.registerPacketListenerForTypes(
|
||||
QSet<PacketType::Value>({ PacketType::OctreeStats, PacketType::EntityData, PacketType::EntityErase }),
|
||||
{ PacketType::OctreeStats, PacketType::EntityData, PacketType::EntityErase },
|
||||
this, "handleOctreePacket");
|
||||
packetReceiver.registerPacketListener(PacketType::Jurisdiction, this, "handleJurisdictionPacket");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue