mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2026-02-05 06:32:17 +08:00
add XianTu
This commit is contained in:
22
XianTu/FileLoad.cs
Normal file
22
XianTu/FileLoad.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using AssetsLoader;
|
||||
using UnityEngine;
|
||||
|
||||
namespace XianTu
|
||||
{
|
||||
internal class FileLoad(string dirPath) : ILoad
|
||||
{
|
||||
|
||||
public GameObject LoadPrefab(string path)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public string LoadText(string path)
|
||||
{
|
||||
return File.ReadAllText(Path.Combine(_dirPath, path));
|
||||
}
|
||||
|
||||
private readonly string _dirPath = dirPath ?? "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user