- Work on storage service. Pre-squash commit.

This commit is contained in:
MapleWheels
2024-12-12 17:07:08 -05:00
committed by Maplewheels
parent 6880e5e9ee
commit 76fc52e042
5 changed files with 468 additions and 76 deletions
@@ -9,14 +9,23 @@ namespace Barotrauma.LuaCs.Services;
public interface IPluginManagementService : IReusableService
{
/// <summary>
/// Checks if an assembly with either the fully-qualified name globally or a 'friendly name' within loaded plugins
/// with the given name is loaded.
/// Checks if the supplied resource is currently loaded.
/// </summary>
/// <param name="friendlyName"></param>
/// <param name="resource">The resource to check.</param>
/// <returns></returns>
bool IsAssemblyLoadedGlobal(string friendlyName);
bool IsResourceLoaded<T>(T resource) where T : IAssemblyResourceInfo;
// TODO: Documentation.
/// <summary>
///
/// </summary>
/// <param name="package"></param>
/// <param name="namespacePrefix"></param>
/// <param name="includeInterfaces"></param>
/// <param name="includeAbstractTypes"></param>
/// <param name="includeDefaultContext"></param>
/// <param name="includeExplicitAssembliesOnly"></param>
/// <typeparam name="T"></typeparam>
/// <returns></returns>
FluentResults.Result<ImmutableArray<T>> GetTypes<T>(
ContentPackage package = null,
string namespacePrefix = null,
@@ -24,18 +33,6 @@ public interface IPluginManagementService : IReusableService
bool includeAbstractTypes = false,
bool includeDefaultContext = true,
bool includeExplicitAssembliesOnly = false);
/// <summary>
/// Gets the assembly <c>MetadataReference</c> collection for the BCL and base game assemblies.
/// </summary>
/// <returns></returns>
ImmutableArray<MetadataReference> GetStandardMetadataReferences();
/// <summary>
///
/// </summary>
/// <returns></returns>
ImmutableArray<MetadataReference> GetPluginMetadataReferences();
/// <summary>
///