- tweak: refactor funny
This commit is contained in:
20
Nebula.Shared/FileApis/AssemblyApi.cs
Normal file
20
Nebula.Shared/FileApis/AssemblyApi.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Robust.LoaderApi;
|
||||
|
||||
namespace Nebula.Shared.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