Deduplicate NetPlayServer::Send() and NetPlayClient::Send() into ENetUtil::SendPacket().

This commit is contained in:
Admiral H. Curtiss 2022-10-09 02:25:28 +02:00
commit 66684a392f
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
4 changed files with 14 additions and 6 deletions

View file

@ -5,8 +5,13 @@
#include <enet/enet.h>
#include <SFML/Network/Packet.hpp>
#include "Common/CommonTypes.h"
namespace ENetUtil
{
void WakeupThread(ENetHost* host);
int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event);
void SendPacket(ENetPeer* socket, const sf::Packet& packet, u8 channel_id);
} // namespace ENetUtil