[General] Use different ordering channels for packets

0.6.1
Koncord 8 years ago
parent 0595192129
commit 956b573323

@ -10,6 +10,7 @@ ActorPacket::ActorPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
packetID = 0;
priority = HIGH_PRIORITY;
reliability = RELIABLE_ORDERED;
orderChannel = CHANNEL_ACTOR;
this->peer = peer;
}

@ -8,6 +8,7 @@
mwmp::PacketChatMessage::PacketChatMessage(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_CHAT_MESSAGE;
orderChannel = CHANNEL_SYSTEM;
}
void mwmp::PacketChatMessage::Packet(RakNet::BitStream *bs, bool send)

@ -16,6 +16,7 @@ namespace mwmp
PacketConsole(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_GAME_CONSOLE;
orderChannel = CHANNEL_SYSTEM;
}
void Packet(RakNet::BitStream *bs, bool send)
{

@ -16,6 +16,7 @@ namespace mwmp
PacketDisconnect(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_USER_DISCONNECTED;
orderChannel = CHANNEL_SYSTEM;
}
};
}

@ -10,6 +10,7 @@ using namespace mwmp;
PacketGUIBoxes::PacketGUIBoxes(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_GUI_MESSAGEBOX;
orderChannel = CHANNEL_SYSTEM;
}
void PacketGUIBoxes::Packet(RakNet::BitStream *bs, bool send)

@ -10,6 +10,7 @@ using namespace mwmp;
PacketHandshake::PacketHandshake(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_HANDSHAKE;
orderChannel = CHANNEL_SYSTEM;
}
void PacketHandshake::Packet(RakNet::BitStream *bs, bool send)

@ -15,6 +15,7 @@ namespace mwmp
PacketLoaded(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_LOADED;
orderChannel = CHANNEL_SYSTEM;
}
};
}

@ -16,6 +16,7 @@ namespace mwmp
PacketSendMyID(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_USER_MYID;
orderChannel = CHANNEL_SYSTEM;
}
};
}

@ -10,6 +10,7 @@ using namespace mwmp;
PacketTime::PacketTime(RakNet::RakPeerInterface *peer) : PlayerPacket(peer)
{
packetID = ID_GAME_TIME;
orderChannel = CHANNEL_SYSTEM;
}
void PacketTime::Packet(RakNet::BitStream *bs, bool send)

@ -10,6 +10,7 @@ PlayerPacket::PlayerPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
packetID = 0;
priority = HIGH_PRIORITY;
reliability = RELIABLE_ORDERED;
orderChannel = CHANNEL_PLAYER;
this->peer = peer;
}

@ -10,6 +10,7 @@ WorldPacket::WorldPacket(RakNet::RakPeerInterface *peer) : BasePacket(peer)
packetID = 0;
priority = HIGH_PRIORITY;
reliability = RELIABLE_ORDERED;
orderChannel = CHANNEL_WORLDEVENT;
this->peer = peer;
}

Loading…
Cancel
Save