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
parent 5f3e8e0f05
commit 66684a392f
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