public void StoreData(AssetType type, string path, IAssetCachedData metadata)
        {
            var metaDataPath = GetCachedDataFilePath(type, path);

            var data = JsonConvert.SerializeObject(metadata);
            File.WriteAllText(metaDataPath, data);
        }
Пример #2
0
        public void StoreData(AssetType type, string path, IAssetCachedData metadata)
        {
            var metaDataPath = GetCachedDataFilePath(type, path);

            var data = JsonConvert.SerializeObject(metadata);

            File.WriteAllText(metaDataPath, data);
        }
Пример #3
0
        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;
        }
Пример #4
0
        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)
 {
 }
Пример #6
0
 public BlueprintAsset(string path, IAssetMetadata metadata, IAssetCachedData cachedData)
     : base(path, metadata, cachedData, AssetType.Blueprint)
 {
 }