示例#1
0
        private void ParseLoginSetting(XmlNodeList loginList)
        {
            _loginDict.Clear();
            foreach (XmlElement item in loginList)
            {
                GameLoginSetting loginSetting = new GameLoginSetting();
                loginSetting.RetailId = item.GetAttribute("id");
                loginSetting.TypeName = item.GetAttribute("type");
                loginSetting.TypeArgs = item.GetAttribute("args");

                if (!_loginDict.ContainsKey(loginSetting.RetailId))
                {
                    _loginDict.Add(loginSetting.RetailId, loginSetting);
                }
            }
        }
示例#2
0
        private void ParseLoginSetting(XmlNodeList loginList)
        {
            _loginDict.Clear();
            foreach (XmlElement item in loginList)
            {
                GameLoginSetting loginSetting = new GameLoginSetting();
                loginSetting.RetailId = item.GetAttribute("id");
                loginSetting.TypeName = item.GetAttribute("type");
                loginSetting.TypeArgs = item.GetAttribute("args");

                if (!_loginDict.ContainsKey(loginSetting.RetailId))
                {
                    _loginDict.Add(loginSetting.RetailId, loginSetting);
                }
            }
        }