3e81e27160
+ Fixed async operations lock for Dispose() pattern in working files. + Rewrote StorageService.cs: --- Now uses ContentPath instead of raw strings where possible. --- Now throws exceptions for developer errors and critical program states. + Rewrote ModConfigService.cs: --- All functions are now completely async. + Removed ConfigProfilesResources completely as they exist in common Config xml files. + Somewhat simplified package data and processes.
112 lines
3.7 KiB
C#
112 lines
3.7 KiB
C#
using System.Collections.Generic;
|
|
using System.Collections.Immutable;
|
|
using System.Threading.Tasks;
|
|
using Barotrauma.LuaCs.Data;
|
|
using FluentResults;
|
|
|
|
namespace Barotrauma.LuaCs.Services;
|
|
|
|
public partial class PackageManagementService : IPackageManagementService
|
|
{
|
|
public void Dispose()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
private int _isDisposed = 0;
|
|
public bool IsDisposed
|
|
{
|
|
get => ModUtils.Threading.GetBool(ref _isDisposed);
|
|
private set => ModUtils.Threading.SetBool(ref _isDisposed, value);
|
|
}
|
|
|
|
|
|
public FluentResults.Result Reset()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public ImmutableArray<IConfigResourceInfo> Configs { get; }
|
|
public ImmutableArray<ILuaScriptResourceInfo> LuaScripts { get; }
|
|
public ImmutableArray<IAssemblyResourceInfo> Assemblies { get; }
|
|
public async Task<FluentResults.Result> LoadPackageInfosAsync(ContentPackage package)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task<IReadOnlyList<(ContentPackage, FluentResults.Result)>> LoadPackagesInfosAsync(IReadOnlyList<ContentPackage> packages)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public IReadOnlyList<ContentPackage> GetAllLoadedPackages()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public bool IsPackageLoaded(ContentPackage package)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public ImmutableArray<T> FilterUnloadableResources<T>(IReadOnlyList<T> resources, bool enabledPackagesOnly = false) where T : IResourceInfo
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public void DisposePackageInfos(ContentPackage package)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public void DisposePackagesInfos(IReadOnlyList<ContentPackage> packages)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public Result<IAssembliesResourcesInfo> GetAssembliesInfos(ContentPackage package, bool onlySupportedResources = true)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public Result<IConfigsResourcesInfo> GetConfigsInfos(ContentPackage package, bool onlySupportedResources = true)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public Result<ILuaScriptsResourcesInfo> GetLuaScriptsInfos(ContentPackage package, bool onlySupportedResources = true)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public Result<IAssembliesResourcesInfo> GetAssembliesInfos(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public Result<IConfigsResourcesInfo> GetConfigsInfos(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public Result<ILuaScriptsResourcesInfo> GetLuaScriptsInfos(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task<Result<IAssembliesResourcesInfo>> GetAssembliesInfosAsync(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task<Result<IConfigsResourcesInfo>> GetConfigsInfosAsync(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public async Task<Result<ILuaScriptsResourcesInfo>> GetLuaScriptsInfosAsync(IReadOnlyList<ContentPackage> packages, bool onlySupportedResources = true)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
}
|