Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaShared/SharedSource/LuaCs/Services/IPackageManagementService.cs
T
MapleWheels 01cc1d331b -- Squash:
- In progress implementation of services model.
2026-02-07 20:10:04 -05:00

22 lines
893 B
C#

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Globalization;
using Barotrauma.LuaCs.Data;
namespace Barotrauma.LuaCs.Services;
public interface IPackageManagementService : IService
{
void AddPackages(ref ReadOnlySpan<(ContentPackage, bool)> packages,
bool executeImmediately = false,
bool errorOnFailures = false,
bool errorOnExistingPackageFound = false);
void LoadPackages(bool onlyUnloadedPackages = true, bool rescanPackages = false);
void UnloadPackages(bool errorOnFailures = true);
bool IsPackageLoaded(ContentPackage package);
bool CheckDependencyLoaded(IPackageDependencyInfo info);
bool CheckDependenciesLoaded(IEnumerable<IPackageDependencyInfo> infos, out IReadOnlyList<IPackageDependencyInfo> missingPackages);
bool CheckEnvironmentSupported(IPlatformInfo platform);
}