Example #1
0
 public static string ModLocal(string file) => Path.Combine(ModEntry.MOD_HELPER.DirectoryPath, Assets.ModAsset(file));
Example #2
0
 public static string UnWrap(string path)
 {
     return(Assets.IsWrapped(path) ? path.Substring(Assets.WRAP.Length) : path);
 }
Example #3
0
 T IAssetLoader.Load <T>(IAssetInfo asset) => (T)(object)Assets.Get(asset.AssetName);
Example #4
0
 public static bool SpriteExists(string path) => File.Exists(Assets.ModLocal(path));
Example #5
0
 /*
  * Asset Handling Overrides
  */
 bool IAssetLoader.CanLoad <T>(IAssetInfo asset) => Assets.Has(asset.AssetName) || Assets.IsWrapped(asset.AssetName);