예제 #1
0
 /// <summary>
 /// Actually load in the asset information.
 /// </summary>
 /// <param name="file"></param>
 /// <param name="path"></param>
 private void ProcessFile(string file, string path)
 {
     try
     {
         ExtendedAssetInfo info  = ExtendedAssetInfo.readFromJson(file);
         AssetSheet        sheet = new AssetSheet(info, path);
         addAsset(sheet);
         Class1.ModMonitor.Log("Loaded in new modular asset: " + info.assetName + " asset type: " + info.type);
     }
     catch (Exception err)
     {
         AssetInfo  info  = AssetInfo.readFromJson(file);
         AssetSheet sheet = new AssetSheet(info, path);
         addAsset(sheet);
     }
 }
 /// <summary>Actually load in the asset information.</summary>
 /// <param name="relativeFilePath">The relative path to the file to process.</param>
 /// <param name="relativeDirPath">The relative path containing the file.</param>
 private void ProcessFile(string relativeFilePath, string relativeDirPath)
 {
     try
     {
         ExtendedAssetInfo info  = ExtendedAssetInfo.readFromJson(relativeFilePath);
         AssetSheet        sheet = new AssetSheet(info, relativeDirPath);
         this.addAsset(sheet);
         Class1.ModMonitor.Log("Loaded in new modular asset: " + info.assetName + " asset type: " + info.type);
     }
     catch
     {
         AssetInfo  info  = AssetInfo.readFromJson(relativeFilePath);
         AssetSheet sheet = new AssetSheet(info, relativeDirPath);
         this.addAsset(sheet);
     }
 }