Changeset View
Changeset View
Standalone View
Standalone View
source/network/NetMessageType.h
- This file was added.
/* Copyright (C) 2017 Wildfire Games. | |||||
* This file is part of 0 A.D. | |||||
* | |||||
* 0 A.D. is free software: you can redistribute it and/or modify | |||||
* it under the terms of the GNU General Public License as published by | |||||
* the Free Software Foundation, either version 2 of the License, or | |||||
* (at your option) any later version. | |||||
* | |||||
* 0 A.D. is distributed in the hope that it will be useful, | |||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
* GNU General Public License for more details. | |||||
* | |||||
* You should have received a copy of the GNU General Public License | |||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | |||||
*/ | |||||
#ifndef NETMESSAGETYPE_H | |||||
#define NETMESSAGETYPE_H | |||||
/** | |||||
* Defines the list of message types. The order of the list must not change. | |||||
* The message types having a negative value are used internally and not sent | |||||
* over the network. The message types used for network communication have | |||||
* positive values. | |||||
*/ | |||||
enum NetMessageType | |||||
{ | |||||
NMT_CONNECT_COMPLETE = -256, | |||||
NMT_CONNECTION_LOST, | |||||
NMT_INVALID = 0, | |||||
NMT_SERVER_HANDSHAKE, | |||||
NMT_CLIENT_HANDSHAKE, | |||||
NMT_SERVER_HANDSHAKE_RESPONSE, | |||||
NMT_AUTHENTICATE, | |||||
NMT_AUTHENTICATE_RESULT, | |||||
NMT_CHAT, | |||||
NMT_READY, | |||||
NMT_CLEAR_ALL_READY, | |||||
NMT_GAME_SETUP, | |||||
NMT_ASSIGN_PLAYER, | |||||
NMT_PLAYER_ASSIGNMENT, | |||||
NMT_FILE_TRANSFER_REQUEST, | |||||
NMT_FILE_TRANSFER_RESPONSE, | |||||
NMT_FILE_TRANSFER_DATA, | |||||
NMT_FILE_TRANSFER_ACK, | |||||
NMT_JOIN_SYNC_START, | |||||
NMT_REJOINED, | |||||
NMT_KICKED, | |||||
NMT_CLIENT_TIMEOUT, | |||||
NMT_CLIENT_PERFORMANCE, | |||||
NMT_CLIENTS_LOADING, | |||||
NMT_CLIENT_PAUSED, | |||||
NMT_LOADED_GAME, | |||||
NMT_GAME_START, | |||||
NMT_END_COMMAND_BATCH, | |||||
NMT_SYNC_CHECK, // OOS-detection hash checking | |||||
NMT_SYNC_ERROR, // OOS-detection error | |||||
NMT_SIMULATION_COMMAND | |||||
}; | |||||
#endif // NETMESSAGETYPE_H |
Wildfire Games · Phabricator