mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-19 21:13:29 +08:00
add XianTu
This commit is contained in:
28
XianTu/AssetsLoader/ABLoader.cs
Normal file
28
XianTu/AssetsLoader/ABLoader.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user