コード例 #1
0
 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);
 }
コード例 #2
0
 private void Init(string path, AssetStorageType storageType)
 {
     Name             = path.Substring(path.LastIndexOf("/") + 1);
     this.Path        = path;
     this.StorageType = storageType;
 }
コード例 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="path"></param>
 /// <param name="storageType"></param>
 public AssetParameter(string path, AssetStorageType storageType)
 {
     Init(path, storageType);
 }