| Core/GameEngine/Model/ConfigManager.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Fight/MapTransferUtility.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Fight/Stage/StageManager.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Dungeon/DungeonModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/GameEngine/Model/ConfigManager.cs
@@ -523,8 +523,7 @@ lines = File.ReadAllLines(path, Encoding.UTF8); break; case AssetPath.External: var assetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact("config/", fileName, ".txt")); path = StringUtility.Contact(ResourcesPath.Instance.ExternalStorePath, assetVersion.relativePath); path = AssetVersionUtility.GetAssetFilePath(StringUtility.Contact("config/", fileName, ".txt")); lines = File.ReadAllLines(path, Encoding.UTF8); break; } Fight/MapTransferUtility.cs
@@ -752,7 +752,7 @@ var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(mapId, 0); var assetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact("maps/", mapResConfig.MapResources.ToLower())); if (!assetVersion.IsPriorAsset()) if (assetVersion != null && !assetVersion.IsPriorAsset()) { InGameDownLoad.Instance.TryDownLoad(InGameDownLoad.Dominant.Whole); return false; Fight/Stage/StageManager.cs
@@ -17,40 +17,32 @@ public event Action<float> loadingProgressEvent; bool m_IsServerPreparing = false; public bool isServerPreparing { public bool isServerPreparing { get { return m_IsServerPreparing; } set { m_IsServerPreparing = value; } } public Stage.E_StageType StageType { get { public Stage.E_StageType StageType { get { return m_StageType; } } public Stage CurrentStage { get { public Stage CurrentStage { get { return m_CurrentStage; } } int m_CurrentMapId; public int currentMapId { public int currentMapId { get { return m_CurrentMapId; } private set { m_CurrentMapId = value; } } int m_CurrentMapResID; public int currentMapResId { get { public int currentMapResId { get { return m_CurrentMapResID; } private set { m_CurrentMapResID = value; } @@ -61,11 +53,9 @@ float m_LoadingProgress = 0f; float loadingProgress { float loadingProgress { get { return m_LoadingProgress; } set { set { m_LoadingProgress = value; if (loadingProgressEvent != null) { @@ -98,7 +88,7 @@ else { var assetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact("maps/", mapResConfig.MapResources.ToLower())); if (assetVersion.IsPriorAsset()) if (assetVersion != null && assetVersion.IsPriorAsset()) { SnxxzGame.Instance.StartCoroutine(LoadCoroutine<T>(stageId, mapResConfig.ID, mapResConfig.MapResources, true)); } System/Dungeon/DungeonModel.cs
@@ -1168,7 +1168,7 @@ var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(_dataMapId, _lineId); var assetVersion = AssetVersionUtility.GetAssetVersion(StringUtility.Contact("maps/", mapResConfig.MapResources.ToLower())); if (!assetVersion.IsPriorAsset()) if (assetVersion != null && !assetVersion.IsPriorAsset()) { InGameDownLoad.Instance.TryDownLoad(InGameDownLoad.Dominant.Whole); return;