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; } }
public ConfigAccount() { ConfigChannel channel = ConfigUtil.LoadJSONConfig <ConfigChannel>("DataPersistent/BuildChannel/ChannelConfig"); this.accountBranch = channel.AccountBranch; this.paymentBranch = channel.PaymentBranch; }
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(); }
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); }
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); } } }
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); } } }
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); } } }
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); } } }
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(); }
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); } }
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; } } } }
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(); } }
public static void LoadFromFile() { version = ConfigUtil.LoadJSONConfig <ConfigUserLocalDataVersion>("Data/_BothLocalAndAssetBundle/LocalDataVersion").UserLocalDataVersion; }
public static void ReloadFromFile() { InLevelMiscData = ConfigUtil.LoadJSONConfig <ConfigInLevelMiscData>(GlobalDataManager.metaConfig.inLevelMiscData); }