66 #define NETCONN_STATE_CONNECTING 0 |
66 #define NETCONN_STATE_CONNECTING 0 |
67 #define NETCONN_STATE_LOBBY 1 |
67 #define NETCONN_STATE_LOBBY 1 |
68 #define NETCONN_STATE_ROOM 2 |
68 #define NETCONN_STATE_ROOM 2 |
69 #define NETCONN_STATE_DISCONNECTED 10 |
69 #define NETCONN_STATE_DISCONNECTED 10 |
70 |
70 |
71 #define NETCONN_DISCONNECT_NORMAL 0 //! The connection was closed normally |
71 #define NETCONN_DISCONNECT_NORMAL 0 //!< The connection was closed normally |
72 #define NETCONN_DISCONNECT_SERVER_TOO_OLD 1 //! The server has a lower protocol version than we do |
72 #define NETCONN_DISCONNECT_SERVER_TOO_OLD 1 //!< The server has a lower protocol version than we do |
73 #define NETCONN_DISCONNECT_AUTH_FAILED 2 //! You sent a password with flib_netconn_send_password that was not accepted |
73 #define NETCONN_DISCONNECT_AUTH_FAILED 2 //!< You sent a password with flib_netconn_send_password that was not accepted |
74 #define NETCONN_DISCONNECT_CONNLOST 3 //! The network connection was lost |
74 #define NETCONN_DISCONNECT_CONNLOST 3 //!< The network connection was lost |
75 #define NETCONN_DISCONNECT_INTERNAL_ERROR 100 //! Something went wrong in frontlib itself |
75 #define NETCONN_DISCONNECT_INTERNAL_ERROR 100 //!< Something went wrong in frontlib itself |
76 |
76 |
77 #define NETCONN_ROOMLEAVE_ABANDONED 0 //! The room was closed because the chief left |
77 #define NETCONN_ROOMLEAVE_ABANDONED 0 //!< The room was closed because the chief left |
78 #define NETCONN_ROOMLEAVE_KICKED 1 //! You have been kicked from the room |
78 #define NETCONN_ROOMLEAVE_KICKED 1 //!< You have been kicked from the room |
79 |
79 |
80 #define NETCONN_MSG_TYPE_PLAYERINFO 0 //! A response to flib_netconn_send_playerInfo |
80 #define NETCONN_MSG_TYPE_PLAYERINFO 0 //!< A response to flib_netconn_send_playerInfo |
81 #define NETCONN_MSG_TYPE_SERVERMESSAGE 1 //! The welcome message when connecting to the lobby |
81 #define NETCONN_MSG_TYPE_SERVERMESSAGE 1 //!< The welcome message when connecting to the lobby |
82 #define NETCONN_MSG_TYPE_WARNING 2 //! A general warning message |
82 #define NETCONN_MSG_TYPE_WARNING 2 //!< A general warning message |
83 #define NETCONN_MSG_TYPE_ERROR 3 //! A general error message |
83 #define NETCONN_MSG_TYPE_ERROR 3 //!< A general error message |
84 |
84 |
85 #define NETCONN_MAPCHANGE_FULL 0 |
85 #define NETCONN_MAPCHANGE_FULL 0 |
86 #define NETCONN_MAPCHANGE_MAP 1 |
86 #define NETCONN_MAPCHANGE_MAP 1 |
87 #define NETCONN_MAPCHANGE_MAPGEN 2 |
87 #define NETCONN_MAPCHANGE_MAPGEN 2 |
88 #define NETCONN_MAPCHANGE_DRAWNMAP 3 |
88 #define NETCONN_MAPCHANGE_DRAWNMAP 3 |