예제 #1
0
        public static void ReloadFromFile()
        {
            _recommendVolatileSettingGroup = ConfigUtil.LoadJSONConfig <ConfigOverrideGroup>(GlobalDataManager.metaConfig.graphicsVolatileSettingRegistryPath);
            _recommendSettingGroupMap      = new Dictionary <string, ConfigOverrideGroup>();
            string[] graphicsSettingRegistryPathes = GlobalDataManager.metaConfig.graphicsSettingRegistryPathes;
            string   targetPlatform = GetTargetPlatform();

            if (targetPlatform != string.Empty)
            {
                foreach (string str2 in graphicsSettingRegistryPathes)
                {
                    if (str2.Contains(targetPlatform))
                    {
                        ConfigOverrideGroup group = ConfigUtil.LoadJSONConfig <ConfigOverrideGroup>(str2);
                        char[]   separator        = new char[] { '/' };
                        string[] strArray3        = str2.Split(separator);
                        string   key = strArray3[strArray3.Length - 1];
                        _recommendSettingGroupMap.Add(key, group);
                    }
                }
                _recommendSetting = null;
                _hasSettingGrade  = false;
                _hasGetGyroscope  = false;
            }
        }
예제 #2
0
        public ConfigAccount()
        {
            ConfigChannel channel = ConfigUtil.LoadJSONConfig <ConfigChannel>("DataPersistent/BuildChannel/ChannelConfig");

            this.accountBranch = channel.AccountBranch;
            this.paymentBranch = channel.PaymentBranch;
        }
예제 #3
0
 public static void ReloadFromFile()
 {
     _avatarRegistry = ConfigUtil.LoadJSONConfig <ConfigAvatarRegistry>("Data/AvatarConfig/AvatarRegistry");
     foreach (string str in _avatarRegistry.AvatarRegistry.Keys)
     {
         _avatarRegistry.AvatarRegistry[str].Config = ConfigUtil.LoadJSONConfig <ConfigAvatar>(string.Format("{0}/{1}{2}_Config", "Data/AvatarConfig", "Avatar_", str));
     }
     ReloadAvatarConfig();
 }
예제 #4
0
        public QAManager()
        {
            ConfigChannel channel = ConfigUtil.LoadJSONConfig <ConfigChannel>("DataPersistent/BuildChannel/ChannelConfig");

            if (channel != null)
            {
                this._channelName = channel.ChannelName;
            }
            SuperDebug.sendToServerAction = new Action <string, string>(this.SendMessageToSever);
        }
예제 #5
0
 public static void ReloadFromData()
 {
     _sharedAnimEventDict = new Dictionary <string, ConfigEntityAnimEvent>();
     foreach (string str in GlobalDataManager.metaConfig.sharedAnimEventGroupPathes)
     {
         foreach (KeyValuePair <string, ConfigEntityAnimEvent> pair in ConfigUtil.LoadJSONConfig <ConfigSharedAnimEventGroup>(str).AnimEvents)
         {
             _sharedAnimEventDict.Add(pair.Key, pair.Value);
         }
     }
 }
예제 #6
0
 public static void ReloadFromFile()
 {
     _galTouchBuffMap = new Dictionary <int, ConfigGalTouchBuffEntry>();
     foreach (string str in GlobalDataManager.metaConfig.galTouchBuffRegistryPathes)
     {
         foreach (ConfigGalTouchBuffEntry entry in ConfigUtil.LoadJSONConfig <ConfigGalTouchBuffRegistry>(str))
         {
             _galTouchBuffMap.Add(entry.GalTouchBuffID, entry);
         }
     }
 }
예제 #7
0
파일: AIData.cs 프로젝트: slb1988/agame
 public static void ReloadFromFile()
 {
     _allGridEntries = new Dictionary <string, ConfigGroupAIGridEntry>();
     foreach (string str in GlobalDataManager.metaConfig.groupAIGridPathes)
     {
         foreach (ConfigGroupAIGridEntry entry in ConfigUtil.LoadJSONConfig <ConfigGroupAIGridRepository>(str))
         {
             _allGridEntries.Add(entry.Name, entry);
         }
     }
 }
예제 #8
0
 public static void ReloadFromFile()
 {
     _propMap = new Dictionary <string, ConfigPropObject>();
     foreach (string str in GlobalDataManager.metaConfig.propObjectRegistryPathes)
     {
         foreach (ConfigPropObject obj2 in ConfigUtil.LoadJSONConfig <ConfigPropObjectRegistry>(str))
         {
             _propMap.Add(obj2.Name, obj2);
         }
     }
 }
예제 #9
0
파일: WeaponData.cs 프로젝트: slb1988/agame
 public static void ReloadFromFile()
 {
     _weaponIDMap = new Dictionary <int, ConfigWeapon>();
     foreach (string str in GlobalDataManager.metaConfig.weaponRegistryPathes)
     {
         foreach (ConfigWeapon weapon in ConfigUtil.LoadJSONConfig <ConfigWeaponRegistry>(str))
         {
             _weaponIDMap.Add(weapon.WeaponID, weapon);
         }
     }
     ReloadWeaponConfig();
 }
예제 #10
0
        public static void LoadAllMonsterConfig()
        {
            monsterGroupMap = new Dictionary <string, ConfigOverrideGroup>();
            List <MonsterConfigMetaData> itemList = MonsterConfigMetaDataReader.GetItemList();
            HashSet <string>             set      = new HashSet <string>();

            foreach (MonsterConfigMetaData data in itemList)
            {
                string configFile = data.configFile;
                set.Add(configFile);
            }
            foreach (string str2 in set)
            {
                ConfigOverrideGroup group = ConfigUtil.LoadJSONConfig <ConfigOverrideGroup>("Data/MonsterConfig/" + str2);
                monsterGroupMap.Add(str2, group);
            }
        }
예제 #11
0
 public static void ReloadFromFile()
 {
     _abilityGroupMap = new Dictionary <string, ConfigOverrideGroup>();
     foreach (string str in GlobalDataManager.metaConfig.abilityRegistryPathes)
     {
         foreach (ConfigOverrideGroup group in ConfigUtil.LoadJSONConfig <ConfigAbilityRegistry>(str))
         {
             try
             {
                 ConfigAbility config = group.GetConfig <ConfigAbility>("Default");
                 _abilityGroupMap.Add(config.AbilityName, group);
             }
             catch
             {
                 UnityEngine.Debug.LogError("Error during loading ability file: " + str);
                 throw;
             }
         }
     }
 }
예제 #12
0
 public static void LoadFromFile()
 {
     Config = ConfigUtil.LoadJSONConfig <ConfigMisc>("Data/MiscData");
     _featureUnlockLevelDict = new Dictionary <int, string>();
     foreach (KeyValuePair <string, object> pair in Config.FeatureUnlockLevel)
     {
         int introduced6 = int.Parse(pair.Key);
         _featureUnlockLevelDict[introduced6] = pair.Value.ToString();
     }
     _currencyIconPathDict = new Dictionary <int, string>();
     foreach (KeyValuePair <string, object> pair2 in Config.CurrencyIconPath)
     {
         int introduced7 = int.Parse(pair2.Key);
         _currencyIconPathDict[introduced7] = pair2.Value.ToString();
     }
     _gachaTicketIconPathDict = new Dictionary <int, string>();
     foreach (KeyValuePair <string, object> pair3 in Config.GachaTicketIconPath)
     {
         int introduced8 = int.Parse(pair3.Key);
         _gachaTicketIconPathDict[introduced8] = pair3.Value.ToString();
     }
 }
예제 #13
0
 public static void LoadFromFile()
 {
     version = ConfigUtil.LoadJSONConfig <ConfigUserLocalDataVersion>("Data/_BothLocalAndAssetBundle/LocalDataVersion").UserLocalDataVersion;
 }
예제 #14
0
 public static void ReloadFromFile()
 {
     InLevelMiscData = ConfigUtil.LoadJSONConfig <ConfigInLevelMiscData>(GlobalDataManager.metaConfig.inLevelMiscData);
 }