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