- add: Service think
This commit is contained in:
22
Nebula.Launcher/FileApis/AssemblyApi.cs
Normal file
22
Nebula.Launcher/FileApis/AssemblyApi.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using Robust.LoaderApi;
|
||||
|
||||
namespace Nebula.Launcher.FileApis;
|
||||
|
||||
public class AssemblyApi : IFileApi
|
||||
{
|
||||
private readonly IFileApi _root;
|
||||
|
||||
public AssemblyApi(IFileApi root)
|
||||
{
|
||||
_root = root;
|
||||
}
|
||||
|
||||
public bool TryOpen(string path, out Stream? stream)
|
||||
{
|
||||
return _root.TryOpen(path, out stream);
|
||||
}
|
||||
|
||||
public IEnumerable<string> AllFiles => _root.AllFiles;
|
||||
}
|
||||
Reference in New Issue
Block a user