mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-18 12:33:28 +08:00
29 lines
699 B
C#
29 lines
699 B
C#
using System.IO;
|
|
|
|
namespace AssetsLoader
|
|
{
|
|
public static class ABLoader
|
|
{
|
|
public static ABLoad LoadFromFile(string abFilename, string dir)
|
|
{
|
|
var text = Path.Combine(dir, abFilename);
|
|
return new ABFileLoad(text);
|
|
}
|
|
|
|
public static ABLoad LoadFromFile(string filepath)
|
|
{
|
|
return new ABFileLoad(filepath);
|
|
}
|
|
|
|
public static ABLoad LoadFromEmbeddedAssets(string abFilename, string defaultNamespace = null)
|
|
{
|
|
return new ABEmbeddedAssetsLoad(abFilename, defaultNamespace);
|
|
}
|
|
|
|
public static ABLoad LoadFromDll(string abFilename, string dllFilepath, string dllDefaultNameSpace)
|
|
{
|
|
return new ABEmbeddedAssetsLoad(abFilename, dllFilepath, dllDefaultNameSpace);
|
|
}
|
|
}
|
|
}
|