示例#1
0
        public void StartLoader()
        {
            List <client_config_define> defineList = ClientConfigManager.LAppInitLoader;

            if (defineList.Count == 0)
            {
                GameLogger.Warning(LOG_CHANNEL.ASSET, "NO Param table");
                return;
            }

            List <string> loadPaths = new List <string>();
            List <string> loadNames = new List <string>();

            foreach (client_config_define define in defineList)
            {
                string name    = define.tableName;
                string prePath = define.tablePath + name + strExtention;
                loadPaths.Add(prePath);
                loadNames.Add(name);
            }

            Object defineObj = ResourcesProxy.LoadAssetImmediately(AVALUE_DEFINE_PATH);

            if (defineObj != null)
            {
                OnResourcesSingleLoadComplete(defineObj);
            }
        }
示例#2
0
 protected void AddSection(string section, string key, string value)
 {
     if (this.m_SectionDic.ContainsKey(section))
     {
         if (this.m_SectionDic[section].ContainsKey(key))
         {
             GameLogger.Warning(LOG_CHANNEL.LOGIC, string.Format("INI配置文件{0}中key重复", new object[] { section }));
         }
         else
         {
             this.m_SectionDic[section][key] = value;
         }
     }
     else
     {
         this.m_SectionDic.Add(section, new Dictionary <string, string>());
         this.m_SectionDic[section][key] = value;
     }
 }