Browse Source

预加载套装资源接口

guodong 1 year ago
parent
commit
c9028adc0a
1 changed files with 8 additions and 1 deletions
  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)