상속: global::ProtoBuf.IExtensible
예제 #1
0
        //申请角色列表
        public void RequireRoleList(string strAccount, int nGameID)
        {
            NFMsg.ReqRoleList xData = new NFMsg.ReqRoleList();
            xData.game_id = nGameID;
            xData.account = UnicodeEncoding.Default.GetBytes(strAccount);

            mxBody.SetLength(0);
            mxSerializer.Serialize(mxBody, xData);

            SendMsg(new NFrame.NFGUID(), NFMsg.EGameMsgID.EGMI_REQ_ROLE_LIST, mxBody);
        }
예제 #2
0
        //申请角色列表
        public void RequireRoleList()
        {
            NFMsg.ReqRoleList xData = new NFMsg.ReqRoleList();
            xData.game_id = mServerID;
            xData.account = ByteString.CopyFromUtf8(mAccount);

            mxBody.SetLength(0);
            xData.WriteTo(mxBody);

            mNetModule.SendMsg(NFMsg.EGameMsgID.EGMI_REQ_ROLE_LIST, mxBody);
        }
예제 #3
0
        //申请角色列表
        public void RequireRoleList()
        {
            NFMsg.ReqRoleList xData = new NFMsg.ReqRoleList();
            xData.GameId  = mServerID;
            xData.Account = ByteString.CopyFromUtf8(mAccount);

            mxBody.SetLength(0);
            xData.WriteTo(mxBody);

            mNetModule.SendMsg((int)NFMsg.EGameMsgID.ReqRoleList, mxBody);
        }
예제 #4
0
    public void RequireRoleList(string strAccount, int nGameID)
    {
        NFMsg.ReqRoleList xData = new NFMsg.ReqRoleList();
        xData.game_id = nGameID;
        xData.account = UnicodeEncoding.Default.GetBytes(strAccount);

        MemoryStream stream = new MemoryStream();

        Serializer.Serialize <NFMsg.ReqRoleList>(stream, xData);

        SendMsg(new NFrame.NFGUID(), NFMsg.EGameMsgID.EGMI_REQ_ROLE_LIST, stream);
    }
예제 #5
0
        public void RequireRoleList()
        {
            NFMsg.ReqRoleList xData = new NFMsg.ReqRoleList();
            xData.game_id = mLoginModule.mServerID;
            xData.account = ByteString.CopyFromUtf8(mLoginModule.mAccount);

            MemoryStream stream = new MemoryStream();

            xData.WriteTo(stream);

            mNetModule.SendToServerByPB(NFMsg.EGameMsgID.EGMI_REQ_ROLE_LIST, stream);
            Debug.Log("RequireRoleList");
        }
예제 #6
0
        // 请求消息
        public void RequireRoleList()
        {
            NFMsg.ReqRoleList xData = new NFMsg.ReqRoleList();
            xData.game_id = NFCLoginLogic.Instance().mServerID;
            xData.account = UnicodeEncoding.Default.GetBytes(NFCLoginLogic.Instance().mAccount);

            MemoryStream stream = new MemoryStream();

            Serializer.Serialize <NFMsg.ReqRoleList>(stream, xData);

            NFCNetLogic.Instance().SendToServerByPB(NFMsg.EGameMsgID.EGMI_REQ_ROLE_LIST, stream);
            Debug.Log("RequireRoleList");
        }
예제 #7
0
    public void RequireRoleList(string strAccount, int nGameID)
    {
        NFMsg.ReqRoleList xData = new NFMsg.ReqRoleList();
        xData.game_id = nGameID;
        xData.account = UnicodeEncoding.Default.GetBytes(strAccount);

        MemoryStream stream = new MemoryStream();
        Serializer.Serialize<NFMsg.ReqRoleList>(stream, xData);

        SendMsg(new NFCoreEx.NFIDENTID(), NFMsg.EGameMsgID.EGMI_REQ_ROLE_LIST, stream);
    }