Пример #1
0
        /// <summary>
        /// This is function which read response from map spawn server
        /// </summary>
        /// <param name="messageHandler"></param>
        protected void HandleResponseSpawnMap(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler        transportHandler = messageHandler.transportHandler;
            ResponseSpawnMapMessage message          = messageHandler.ReadMessage <ResponseSpawnMapMessage>();

            transportHandler.ReadResponse(message.ackId, message.responseCode, message);
        }
Пример #2
0
        protected void HandleResponseValidateAccessToken(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler transportHandler          = messageHandler.transportHandler;
            ResponseValidateAccessTokenMessage message = messageHandler.ReadMessage <ResponseValidateAccessTokenMessage>();

            transportHandler.ReadResponse(message.ackId, message.responseCode, message);
        }
Пример #3
0
        protected void HandleResponseUserLogout(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler transportHandler = messageHandler.transportHandler;
            BaseAckMessage   message          = messageHandler.ReadMessage <BaseAckMessage>();

            transportHandler.ReadResponse(message.ackId, message.responseCode, message);
        }
Пример #4
0
        private void HandleResponseAppServerRegister(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler transportHandler        = messageHandler.transportHandler;
            ResponseAppServerRegisterMessage message = messageHandler.ReadMessage <ResponseAppServerRegisterMessage>();

            transportHandler.ReadResponse(message.ackId, message.responseCode, message);
        }
Пример #5
0
        protected void HandleResponseAppServerAddress(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler transportHandler       = messageHandler.transportHandler;
            ResponseAppServerAddressMessage message = messageHandler.ReadMessage <ResponseAppServerAddressMessage>();

            transportHandler.ReadResponse(message.ackId, message.responseCode, message);
        }
Пример #6
0
        protected void HandleResponseDeleteCharacter(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler transportHandler      = messageHandler.transportHandler;
            ResponseDeleteCharacterMessage message = messageHandler.ReadMessage <ResponseDeleteCharacterMessage>();

            transportHandler.ReadResponse(message.ackId, message.responseCode, message);
        }