Пример #1
0
 public ScenarioAsset(string path, IAssetMetadata metadata, AssetWithImageCachedData cachedData)
     : base(path, metadata, cachedData, AssetType.Scenario)
 {
     if (cachedData == null)
     {
         throw new ArgumentNullException(nameof(cachedData));
     }
     _cachedData = cachedData;
 }
Пример #2
0
 public ModAsset(string path, IModMetadata metadata, AssetWithImageCachedData cachedData,
                 ModInformation information)
     : base(path, metadata, cachedData, AssetType.Mod)
 {
     if (cachedData == null)
     {
         throw new ArgumentNullException(nameof(cachedData));
     }
     if (information == null)
     {
         throw new ArgumentNullException(nameof(information));
     }
     _metadata   = metadata;
     _cachedData = cachedData;
     Information = information;
 }