Example #1
0
 // 游客登陆
 public void loginVisitor(CMD_GP_VisitorLogon VisitorAccount)
 {
     mVisitorAccount = VisitorAccount;
     mVisitorAccount.dwPlazaVersion = DF.shared().GetPlazaVersion();
     mMissionType = MISSION_LOGIN_VISITOR;
     start();
 }
Example #2
0
        //////////////////////////////////////////////////////////////////////////
        ///
        /// // 登陆
        public bool sendLoginVisitor(CMD_GP_VisitorLogon VisitorAccount)
        {
            GlobalUserInfo    pGlobalUserInfo = GameNet.GlobalUserInfo.GetInstance();
            tagGlobalUserData pGlobalUserData = pGlobalUserInfo.GetGlobalUserData();

            Buffer.BlockCopy(mVisitorAccount.szPassWord, 0, pGlobalUserData.szPassword, 0,
                             mVisitorAccount.szPassWord.Length);

            //发送数据
            var buf = StructConverterByteArray.StructToBytes(mVisitorAccount);

            send(MsgDefine.MDM_GP_LOGON, MsgDefine.SUB_GP_LOGON_VISITOR, buf, buf.Length);
            return(true);
        }