Files
NebulaLauncher/Nebula.Launcher/FileApis/AssemblyApi.cs
2024-12-22 16:38:47 +03:00

22 lines
443 B
C#

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;
}