소스 검색

预加载套装资源接口

guodong 1 년 전
부모
커밋
c9028adc0a
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      GameClient/Assets/Game/HotUpdate/Assets/PreloadManager.cs

+ 8 - 1
GameClient/Assets/Game/HotUpdate/Assets/PreloadManager.cs

@@ -25,7 +25,14 @@ namespace GFGGame
             LogUtil.LogEditor($"PreloadManager TryAdd {location}");
         }
 
-        public void AddSuit(int suitId, ResType resType, int[] excludeType, bool includeOptional)
+        /// <summary>
+        /// 预加载套装资源
+        /// </summary>
+        /// <param name="suitId"></param>
+        /// <param name="resType">可以选择预加载静态图或者动画或者全部</param>
+        /// <param name="excludeType">排除一些类型,由ConstDressUpItemType定义</param>
+        /// <param name="includeOptional">是否包含可选部件</param>
+        public void PreloadSuitRes(int suitId, ResType resType, int[] excludeType, bool includeOptional)
         {
             SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(suitId);
             if (suitCfg == null)