- Removed all package dependency lookup code.
- Changed from absolute file paths to the upstream `ContentPath` system.
This commit is contained in:
-16
@@ -1,16 +0,0 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Threading.Tasks;
|
||||
using Barotrauma.LuaCs.Data;
|
||||
using Barotrauma.LuaCs.Events;
|
||||
|
||||
namespace Barotrauma.LuaCs.Services;
|
||||
|
||||
public interface IPackageInfoLookupService : IReusableService
|
||||
{
|
||||
bool IsPackageEnabled(ContentPackage package);
|
||||
Task<FluentResults.Result<IPackageInfo>> Lookup(string packageName);
|
||||
Task<FluentResults.Result<IPackageInfo>> Lookup(string packageName, ulong steamWorkshopId);
|
||||
Task<FluentResults.Result<IPackageInfo>> Lookup(ulong steamWorkshopId);
|
||||
Task<FluentResults.Result<IPackageInfo>> Lookup(ContentPackage package);
|
||||
void RefreshPackageLists();
|
||||
}
|
||||
+1
-2
@@ -39,10 +39,9 @@ public interface IPackageManagementService : IReusableService, IConfigsResources
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <returns></returns>
|
||||
ImmutableArray<T> FilterUnloadableResources<T>(IReadOnlyList<T> resources, bool enabledPackagesOnly = false)
|
||||
where T : IResourceInfo, IResourceCultureInfo, IPackageDependenciesInfo;
|
||||
where T : IResourceInfo;
|
||||
void DisposePackageInfos(ContentPackage package);
|
||||
void DisposePackagesInfos(IReadOnlyList<ContentPackage> packages);
|
||||
FluentResults.Result<IPackageDependency> GetPackageDependencyInfo(ContentPackage ownerPackage, string packageName, ulong steamWorkshopId);
|
||||
|
||||
// single
|
||||
FluentResults.Result<IAssembliesResourcesInfo> GetAssembliesInfos(ContentPackage package, bool onlySupportedResources = true);
|
||||
|
||||
Reference in New Issue
Block a user