Пример #1
0
    private void OnAck_AccountRegister(MessageRecv obj)
    {
        System.IO.MemoryStream ms  = new System.IO.MemoryStream(obj.Data);
        AccountRegAck          ack = Serializer.Deserialize <AccountRegAck>(ms);

        GTEventCenter.FireEvent(GTEventID.TYPE_REGISTER_CALLBACK);
    }
Пример #2
0
    private void OnReq_Register(MessageRecv obj)
    {
        System.IO.MemoryStream ms  = new System.IO.MemoryStream(obj.Data);
        AccountRegReq          req = Serializer.Deserialize <AccountRegReq>(ms);
        AccountRegAck          ack = new AccountRegAck();

        NetworkManager.Instance.Send(MessageID.MSG_ACCOUNT_REG_ACK, ack, 0, 0);
    }
Пример #3
0
    private void OnAck_AccountRegister(MessageRecv obj)
    {
        System.IO.MemoryStream ms  = new System.IO.MemoryStream(obj.Data);
        AccountRegAck          ack = Serializer.Deserialize <AccountRegAck>(ms);

        if (GTItemHelper.ShowNetworkError(ack.RetCode) == false)
        {
            return;
        }
        GTEventCenter.FireEvent(GTEventID.TYPE_LOGIN_ACCOUNT_REGISTER);
    }