IAddressRule.cs 466 B

12345678910111213141516171819202122232425
  1. 
  2. namespace YooAsset.Editor
  3. {
  4. public struct AddressRuleData
  5. {
  6. public string AssetPath;
  7. public string CollectPath;
  8. public string GroupName;
  9. public AddressRuleData(string assetPath, string collectPath, string groupName)
  10. {
  11. AssetPath = assetPath;
  12. CollectPath = collectPath;
  13. GroupName = groupName;
  14. }
  15. }
  16. /// <summary>
  17. /// 寻址规则接口
  18. /// </summary>
  19. public interface IAddressRule
  20. {
  21. string GetAssetAddress(AddressRuleData data);
  22. }
  23. }