public void ServerAutoInfo()
        {
            //List<LoginData.PlayerRoleData> curList = new List<LoginData.PlayerRoleData>();
            PlayerAuto AutoData = new PlayerAuto(AutoPickUp,
                                                 AutoInviteTeamAccept,
                                                 AutoJoinTeamAccept,
                                                 AutoActivityAccept,
                                                 (int)(AutoHpPercent * 100),
                                                 (int)(AutoMpPercent * 100),
                                                 AutoBuyDrug,
                                                 AutoNotice,
                                                 AutoHpID,
                                                 AutoMpID,
                                                 AutoIsSelectDrug,
                                                 AutoEquipGuid,
                                                 m_AutoSelSkillID);

            UserConfigData.AddPlayerAuto(GUID.ToString(), AutoData);
        }
        public void InitAutoInfo()
        {
            //先初始化
            SetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP1, false);
            SetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP2, false);
            SetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP3, false);
            SetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP4, false);
            SetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_EQUIP5, false);
            SetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_STUFF, false);
            SetAutoPickUpFlag((int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_PICKUP_TYPE.PICKUP_OTHER, false);

            AutoHpID = (int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_DRUG_ID.AUTO_DRUG_START_HP;
            AutoMpID = (int)Games.GlobeDefine.GameDefine_Globe.AUTOCOMBAT_DRUG_ID.AUTO_DRUG_START_MP;
            ClearAutoSelSkillID();
            //读取注册表
            Dictionary <string, PlayerAuto> curPlayerAutoList = UserConfigData.GetPlayerAutoList();
            UInt64 PlayerGuid = PlayerPreferenceData.LastRoleGUID;

            if (curPlayerAutoList.ContainsKey(PlayerGuid.ToString()))
            {
                PlayerAuto oPlayerAuto = curPlayerAutoList[PlayerGuid.ToString()];
                if (oPlayerAuto != null)
                {
                    //AutoComabat = oPlayerAuto.AutoFightOpenToggle == 1? true : false;
                    AutoPickUp = oPlayerAuto.AutoPickUp;

                    AutoInviteTeamAccept = oPlayerAuto.AutoInviteTeamAccept == 1? true : false;
                    AutoJoinTeamAccept   = oPlayerAuto.AutoJoinTeamAccept == 1 ? true : false;
                    AutoActivityAccept   = oPlayerAuto.AutoJoinActivity == 1 ? true : false;

                    AutoHpPercent = (float)oPlayerAuto.AutoHpPercent / 100;
                    AutoMpPercent = (float)oPlayerAuto.AutoMpPercent / 100;
                    AutoBuyDrug   = oPlayerAuto.AutoBuyDrug == 1 ? true : false;
                    //AutoRadius = oPlayerAuto.AutoRadius;
                    AutoNotice = oPlayerAuto.AutoNotice;

                    AutoHpID         = oPlayerAuto.AutoHpID;
                    AutoMpID         = oPlayerAuto.AutoMpID;
                    AutoIsSelectDrug = oPlayerAuto.AutoIsSelectDrug == 1 ? true : false;
                    AutoEquipGuid    = oPlayerAuto.AutoEquipGuid;
                    //m_AutoSelSkillID.Clear();

                    /*for( int i = 0 ; i < oPlayerAuto.AutoSkillID.Length ; ++i)
                     * {
                     *      m_AutoSelSkillID.Add( oPlayerAuto.AutoSkillID[i]);
                     * } */
                    m_AutoSelSkillID = oPlayerAuto.AutoSkillID;
                    UpdateSelectDrug();
                }
            }

            if (PlayerFrameLogic.Instance())
            {
                PlayerFrameLogic.Instance().InitAutoFight();
            }
            if (null != FunctionButtonLogic.Instance())
            {
                FunctionButtonLogic.Instance().UpdateAutoFightBtnState();
            }
            m_nCopySceneExitTime = -1;
        }