public Asset(string name, IResource resource, AssetStorageType storageType, AssetHashMd5 filesHashMd5, string referencePath, string assetCachePath) { Name = name; Resource = resource; StorageType = storageType; FilesHashMd5 = filesHashMd5; ReferencePath = referencePath; AssetCachePath = assetCachePath; resource.Source = new FromAssetResourceSource(this); }
private void Init(string path, AssetStorageType storageType) { Name = path.Substring(path.LastIndexOf("/") + 1); this.Path = path; this.StorageType = storageType; }
/// <summary> /// /// </summary> /// <param name="path"></param> /// <param name="storageType"></param> public AssetParameter(string path, AssetStorageType storageType) { Init(path, storageType); }