| Core/GameEngine/Model/Config/LoadingBackGroundConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Core/GameEngine/Model/Config/LoadingBackGroundConfig.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Core/GameEngine/Model/TelPartialConfig/ParticalLoadingBackGroundConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Core/GameEngine/Model/TelPartialConfig/ParticalLoadingBackGroundConfig.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Loading/LoadingWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/GameEngine/Model/Config/LoadingBackGroundConfig.cs
@@ -1,6 +1,6 @@ //-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Thursday, November 15, 2018 // [ Date ]: Saturday, November 24, 2018 //-------------------------------------------------------- using UnityEngine; @@ -12,6 +12,7 @@ public partial class LoadingBackGroundConfig : ConfigBase { public int id { get ; private set ; } public int lineId { get ; private set ; } public string[] icons; public string levelLimit { get ; private set; } public string name { get ; private set; } @@ -27,13 +28,15 @@ { id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; icons = rawContents[1].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); lineId=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; levelLimit = rawContents[2].Trim(); icons = rawContents[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); name = rawContents[3].Trim(); levelLimit = rawContents[3].Trim(); description = rawContents[4].Trim(); name = rawContents[4].Trim(); description = rawContents[5].Trim(); } catch (Exception ex) { Core/GameEngine/Model/Config/LoadingBackGroundConfig.cs.meta
@@ -1,6 +1,6 @@ fileFormatVersion: 2 guid: 791645468791ce74c84280782740fa99 timeCreated: 1542267123 timeCreated: 1543051187 licenseType: Pro MonoImporter: serializedVersion: 2 Core/GameEngine/Model/TelPartialConfig/ParticalLoadingBackGroundConfig.cs
New file @@ -0,0 +1,46 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; namespace TableConfig { public partial class LoadingBackGroundConfig : ConfigBase, IConfigPostProcess { static Dictionary<int, Dictionary<int, LoadingBackGroundConfig>> configs = new Dictionary<int, Dictionary<int, LoadingBackGroundConfig>>(); public void OnConfigParseCompleted() { if (!configs.ContainsKey(this.id)) { configs[this.id] = new Dictionary<int, LoadingBackGroundConfig>(); } configs[this.id][this.lineId] = this; } public static LoadingBackGroundConfig Get(int dataId, int lineId) { if (!configs.ContainsKey(dataId)) { return null; } var lineConfigs = configs[dataId]; if (lineConfigs.ContainsKey(lineId)) { return lineConfigs[lineId]; } if (lineConfigs.ContainsKey(0)) { return lineConfigs[0]; } return null; } } } Core/GameEngine/Model/TelPartialConfig/ParticalLoadingBackGroundConfig.cs.meta
New file @@ -0,0 +1,12 @@ fileFormatVersion: 2 guid: 52a6ecf096739d445abdfd4997b4cfda timeCreated: 1543051260 licenseType: Pro MonoImporter: serializedVersion: 2 defaultReferences: [] executionOrder: 0 icon: {instanceID: 0} userData: assetBundleName: assetBundleVariant: System/Loading/LoadingWin.cs
@@ -68,7 +68,7 @@ var mapResConfig = Config.Instance.Get<MapResourcesConfig>(targetMapResId); if (mapResConfig != null) { var loadingBackGroudConfig = Config.Instance.Get<LoadingBackGroundConfig>(mapResConfig.DataID); var loadingBackGroudConfig = LoadingBackGroundConfig.Get(mapResConfig.DataID, mapResConfig.LineID); if (loadingBackGroudConfig != null && loadingBackGroudConfig.icons.Length > 0) { var icons = new List<string>(); @@ -141,7 +141,7 @@ { m_ContainerMapDescription.gameObject.SetActive(false); } } } }