NetPlayProto: Turn connection error enum into an enum class

Continues the migration off the MessageId type alias
This commit is contained in:
Lioncash committed 2021-09-22 15:42:04 -04:00
1 parent dedd0b7ba1
commit a034f378a0
4 files changed
+22 -21

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ private:
void SendToClients(const sf::Packet& packet, PlayerId skip_pid = 0,
u8 channel_id = DEFAULT_CHANNEL);
void Send(ENetPeer* socket, const sf::Packet& packet, u8 channel_id = DEFAULT_CHANNEL);
unsigned int OnConnect(ENetPeer* socket, sf::Packet& rpac);
ConnectionError OnConnect(ENetPeer* socket, sf::Packet& rpac);
unsigned int OnDisconnect(const Client& player);
unsigned int OnData(sf::Packet& packet, Client& player);