summaryrefslogtreecommitdiff
path: root/src/network/network_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/network_client.h')
-rw-r--r--src/network/network_client.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/network/network_client.h b/src/network/network_client.h
index e7fd0057f..ee0c56fca 100644
--- a/src/network/network_client.h
+++ b/src/network/network_client.h
@@ -18,6 +18,31 @@
/** Class for handling the client side of the game connection. */
class ClientNetworkGameSocketHandler : public NetworkGameSocketHandler {
+protected:
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_FULL);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_BANNED);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_ERROR);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_COMPANY_INFO);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_CLIENT_INFO);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_NEED_GAME_PASSWORD);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_NEED_COMPANY_PASSWORD);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_WELCOME);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_WAIT);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_MAP);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_JOIN);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_FRAME);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_SYNC);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_COMMAND);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_CHAT);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_QUIT);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_ERROR_QUIT);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_SHUTDOWN);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_NEWGAME);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_RCON);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_CHECK_NEWGRFS);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_MOVE);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_COMPANY_UPDATE);
+ DECLARE_GAME_RECEIVE_COMMAND(PACKET_SERVER_CONFIG_UPDATE);
public:
ClientNetworkGameSocketHandler(SOCKET s);
};
@@ -36,7 +61,6 @@ DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_ACK);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_RCON)(const char *pass, const char *command);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_MOVE)(CompanyID company, const char *pass);
-NetworkRecvStatus NetworkClient_ReadPackets(NetworkClientSocket *cs);
void NetworkClient_Connected();
extern CompanyID _network_join_as;