public static ConfigDynamicObjectRegistry GetDynamicObjectRegistry(string registryPath) { string[] dynamicObjectRegistryPathes = GlobalDataManager.metaConfig.dynamicObjectRegistryPathes; for (int i = 0; i < dynamicObjectRegistryPathes.Length; i++) { if (dynamicObjectRegistryPathes[i] == registryPath) { return(ConfigUtil.LoadConfig <ConfigDynamicObjectRegistry>(dynamicObjectRegistryPathes[i])); } } return(null); }
public static ConfigAnimatorEventPattern[] GetConfigs() { List <ConfigAnimatorEventPattern> list = new List <ConfigAnimatorEventPattern>(); string[] animatorEventPatternPathes = GlobalDataManager.metaConfig.animatorEventPatternPathes; for (int i = 0; i < animatorEventPatternPathes.Length; i++) { ConfigAnimatorEventPattern item = ConfigUtil.LoadConfig <ConfigAnimatorEventPattern>(animatorEventPatternPathes[i]); list.Add(item); } return(list.ToArray()); }
private void LoadBlurData() { string filePath = "FakeDOF/DOFEnterPlot"; ConfigCameraFakeDOF edof = ConfigUtil.LoadConfig <ConfigCameraFakeDOF>(filePath); this.blurEnterCurve = edof.Curve; this.blurEnterDuration = edof.Duration; string str2 = "FakeDOF/DOFExitPlot"; ConfigCameraFakeDOF edof2 = ConfigUtil.LoadConfig <ConfigCameraFakeDOF>(str2); this.blurExitCurve = edof2.Curve; this.blurExitDuration = edof2.Duration; this.blurDataLoaded = true; }
private void ShowLastKillCameraEffect(BaseMonoMonster monster) { BaseMonoAvatar avatar = Singleton <AvatarManager> .Instance.TryGetLocalAvatar(); Vector3 vector = monster.XZPosition - avatar.XZPosition; float magnitude = vector.magnitude; string filePath = (Singleton <MonsterManager> .Instance.LivingMonsterCount() != 0) ? "SlowMotionKill/Normal" : "SlowMotionKill/LastKill"; ConfigCameraSlowMotionKill config = ConfigUtil.LoadConfig <ConfigCameraSlowMotionKill>(filePath); MonoMainCamera mainCamera = Singleton <CameraManager> .Instance.GetMainCamera(); Vector3 vector2 = mainCamera.XZPosition - avatar.XZPosition; float distCamera = vector2.magnitude; mainCamera.SetSlowMotionKill(config, magnitude, distCamera); }
public static ConfigWeatherData LoadFromFile(ConfigWeather config) { if (config == null) { return(null); } ConfigWeatherData data = new ConfigWeatherData(); if (!string.IsNullOrEmpty(config.renderingDataPath)) { data.configRenderingData = ConfigUtil.LoadConfig <ConfigBaseRenderingData>(config.renderingDataPath); } data.configSubWeathers = ConfigSubWeatherCollection.LoadFromFile(config); data.configSubWeathers.stageEffectSetting = config.stageEffectSetting; return(data); }
public static void ReloadFromFile() { _auxObjectDict = new Dictionary <string, string>(); string[] auxEntryPathes = GlobalDataManager.metaConfig.auxEntryPathes; for (int i = 0; i < auxEntryPathes.Length; i++) { ConfigAuxObjectRegistry registry = ConfigUtil.LoadConfig <ConfigAuxObjectRegistry>(auxEntryPathes[i]); if (registry.entries != null) { for (int j = 0; j < registry.entries.Length; j++) { AuxObjectEntry entry = registry.entries[j]; _auxObjectDict.Add(entry.name, entry.GetPrefabPath()); } } } }
public static void ReloadFromFile() { _cameraCurveDict = new Dictionary <string, AnimationCurve>(); string[] cameraCurvePatternPathes = GlobalDataManager.metaConfig.cameraCurvePatternPathes; for (int i = 0; i < cameraCurvePatternPathes.Length; i++) { ConfigCameraCurvePattern pattern = ConfigUtil.LoadConfig <ConfigCameraCurvePattern>(cameraCurvePatternPathes[i]); if (pattern != null) { for (int j = 0; j < pattern.patterns.Length; j++) { CameraCurvePattern pattern2 = pattern.patterns[j]; _cameraCurveDict.Add(pattern2.name, pattern2.animationCurve); } } } }
public static void ReloadFromFile() { dynamicObjectDict = new Dictionary <string, string>(); string[] dynamicObjectRegistryPathes = GlobalDataManager.metaConfig.dynamicObjectRegistryPathes; for (int i = 0; i < dynamicObjectRegistryPathes.Length; i++) { ConfigDynamicObjectRegistry registry = ConfigUtil.LoadConfig <ConfigDynamicObjectRegistry>(dynamicObjectRegistryPathes[i]); if (registry.entries != null) { for (int j = 0; j < registry.entries.Length; j++) { DynamicObjectEntry entry = registry.entries[j]; dynamicObjectDict.Add(entry.name, entry.prefabPath); } } } }
public static void ReloadFromFile() { _stageEntryDict = new Dictionary <string, StageEntry>(); string[] stageEntryPathes = GlobalDataManager.metaConfig.stageEntryPathes; for (int i = 0; i < stageEntryPathes.Length; i++) { ConfigStageRegistry registry = ConfigUtil.LoadConfig <ConfigStageRegistry>(stageEntryPathes[i]); if (registry.entries != null) { for (int j = 0; j < registry.entries.Length; j++) { StageEntry entry = registry.entries[j]; _stageEntryDict.Add(entry.TypeName, entry); } } } }
public static void ReloadFromFile() { _animatorEventPatternDict = new Dictionary <string, AnimatorEventPattern>(); string[] animatorEventPatternPathes = GlobalDataManager.metaConfig.animatorEventPatternPathes; for (int i = 0; i < animatorEventPatternPathes.Length; i++) { ConfigAnimatorEventPattern pattern = ConfigUtil.LoadConfig <ConfigAnimatorEventPattern>(animatorEventPatternPathes[i]); if (pattern.patterns != null) { for (int j = 0; j < pattern.patterns.Length; j++) { AnimatorEventPattern pattern2 = pattern.patterns[j]; _animatorEventPatternDict.Add(pattern2.name, pattern2); } } } }
public static void ReloadFromFile() { _renderingDataDict = new Dictionary <string, ConfigBaseRenderingData>(); string[] renderEntryPathes = GlobalDataManager.metaConfig.renderEntryPathes; for (int i = 0; i < renderEntryPathes.Length; i++) { ConfigRenderingDataRegistry registry = ConfigUtil.LoadConfig <ConfigRenderingDataRegistry>(renderEntryPathes[i]); if (registry.entries != null) { for (int j = 0; j < registry.entries.Length; j++) { RenderingDataEntry entry = registry.entries[j]; _renderingDataDict.Add(entry.name, Miscs.LoadResource <ConfigBaseRenderingData>(entry.GetDataPath(), BundleType.RESOURCE_FILE)); } } } }
public static void ReloadFromFile() { _weatherDataDict = new Dictionary <string, ConfigWeatherData>(); string[] weatherEntryPathes = GlobalDataManager.metaConfig.weatherEntryPathes; for (int i = 0; i < weatherEntryPathes.Length; i++) { ConfigWeatherRegistry registry = ConfigUtil.LoadConfig <ConfigWeatherRegistry>(weatherEntryPathes[i]); if (registry.entries != null) { for (int j = 0; j < registry.entries.Length; j++) { ConfigWeatherEntry entry = registry.entries[j]; ConfigWeather config = Miscs.LoadResource <ConfigWeather>(entry.dataPath, BundleType.RESOURCE_FILE); _weatherDataDict.Add(entry.name, ConfigWeatherData.LoadFromFile(config)); } } } }
public static void ReloadFromFile() { _effectPatternDict = new Dictionary <string, EffectPattern>(); _effectGroupDict = new Dictionary <string, EffectPattern[]>(); string[] effectPatternPathes = GlobalDataManager.metaConfig.effectPatternPathes; for (int i = 0; i < effectPatternPathes.Length; i++) { ConfigEffectPattern pattern = ConfigUtil.LoadConfig <ConfigEffectPattern>(effectPatternPathes[i]); if (pattern.patterns != null) { _effectGroupDict.Add(pattern.groupName, pattern.patterns); for (int j = 0; j < pattern.patterns.Length; j++) { EffectPattern pattern2 = pattern.patterns[j]; _effectPatternDict.Add(pattern2.name, pattern2); } } } }
public static void ReloadFromFile() { _touchPatternDict = new Dictionary <string, List <TouchPatternItem> >(); string[] touchPatternPathes = GlobalDataManager.metaConfig.touchPatternPathes; for (int i = 0; i < touchPatternPathes.Length; i++) { ConfigTouchPattern pattern = ConfigUtil.LoadConfig <ConfigTouchPattern>(touchPatternPathes[i]); if (_touchPatternDict.ContainsKey(pattern.name)) { UnityEngine.Debug.LogError(string.Format("duplicate touch pattern name : {0}", pattern.name)); } else if (pattern.touchPatternItems != null) { List <TouchPatternItem> list = new List <TouchPatternItem>(); for (int j = 0; j < pattern.touchPatternItems.Length; j++) { list.Add(pattern.touchPatternItems[j]); } _touchPatternDict[pattern.name] = list; } } }
private void Awake() { GlobalDataManager.metaConfig = ConfigUtil.LoadConfig <ConfigMetaConfig>("Common/MetaConfig"); TouchPatternData.ReloadFromFile(); }
public static void ReloadFromFile() { _items = ConfigUtil.LoadConfig <ConfigAtmosphereSeriesRegistry>(GlobalDataManager.metaConfig.atmosphereRegistryPath).Items; _allLevelClearedItems = ConfigUtil.LoadConfig <ConfigAtmosphereSeriesRegistry>(GlobalDataManager.metaConfig.allLevelsClearedAtmosphereRegistryPath).Items; }