public void StoreData(AssetType type, string path, IAssetCachedData metadata) { var metaDataPath = GetCachedDataFilePath(type, path); var data = JsonConvert.SerializeObject(metadata); File.WriteAllText(metaDataPath, data); }
protected Asset(string path, IAssetMetadata metadata, IAssetCachedData cachedData, AssetType type) { if (path == null) throw new ArgumentNullException(nameof(path)); if (cachedData == null) throw new ArgumentNullException(nameof(cachedData)); InstallationPath = path; _metadata = metadata; _cachedData = cachedData; Type = type; }
protected Asset(string path, IAssetMetadata metadata, IAssetCachedData cachedData, AssetType type) { if (path == null) { throw new ArgumentNullException(nameof(path)); } if (cachedData == null) { throw new ArgumentNullException(nameof(cachedData)); } InstallationPath = path; _metadata = metadata; _cachedData = cachedData; Type = type; }
public BlueprintAsset(string path, IAssetMetadata metadata, IAssetCachedData cachedData) : base(path, metadata, cachedData, AssetType.Blueprint) { }