IPackRule.cs 676 B

12345678910111213141516171819202122232425262728293031323334
  1. 
  2. namespace YooAsset.Editor
  3. {
  4. public struct PackRuleData
  5. {
  6. public string AssetPath;
  7. public string CollectPath;
  8. public string GroupName;
  9. public PackRuleData(string assetPath)
  10. {
  11. AssetPath = assetPath;
  12. CollectPath = string.Empty;
  13. GroupName = string.Empty;
  14. }
  15. public PackRuleData(string assetPath, string collectPath, string groupName)
  16. {
  17. AssetPath = assetPath;
  18. CollectPath = collectPath;
  19. GroupName = groupName;
  20. }
  21. }
  22. /// <summary>
  23. /// 资源打包规则接口
  24. /// </summary>
  25. public interface IPackRule
  26. {
  27. /// <summary>
  28. /// 获取资源打包所属的资源包名称
  29. /// </summary>
  30. string GetBundleName(PackRuleData data);
  31. }
  32. }