Пример #1
0
        protected void HandleResponseAppServerAddress(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler transportHandler       = messageHandler.transportHandler;
            ResponseAppServerAddressMessage message = messageHandler.ReadMessage <ResponseAppServerAddressMessage>();

            transportHandler.TriggerAck(message.ackId, message.responseCode, message);
        }
        private void HandleResponseAppServerRegister(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler peerHandler             = messageHandler.transportHandler;
            ResponseAppServerRegisterMessage message = messageHandler.ReadMessage <ResponseAppServerRegisterMessage>();

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

            transportHandler.TriggerAck(message.ackId, message.responseCode, message);
        }
Пример #4
0
        protected virtual void HandleResponseCashPackageBuyValidation(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler transportHandler = messageHandler.transportHandler;
            ResponseCashPackageBuyValidationMessage message = messageHandler.ReadMessage <ResponseCashPackageBuyValidationMessage>();

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

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

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

            transportHandler.TriggerAck(message.ackId, message.responseCode, message);
        }
Пример #8
0
        protected void HandleResponseCharacters(LiteNetLibMessageHandler messageHandler)
        {
            TransportHandler          transportHandler = messageHandler.transportHandler;
            ResponseCharactersMessage message          = messageHandler.ReadMessage <ResponseCharactersMessage>();
            uint ackId = message.ackId;

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