Class PackageSolver¶
Namespace: Apogee.Content.Packages
Assembly: Apogee.Content.dll
Decides which packages load and in what order. There is one version of each id: the first candidate with an id wins and later ones are ignored with a problem. A package is disabled, with a reason, when it needs a newer API or another game version, the player switched it off, a dependency is missing, disabled, or out of its version range, it is in a dependency cycle, or it is a base package that needs a mod; disabling cascades to what depends on it. What loads is ordered so that dependencies come first, base packages before mods and otherwise by id, so that the order is the same on every machine.
public static class PackageSolver
Inheritance¶
Inherited Members¶
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods¶
Solve(IReadOnlyList<PackageCandidate>, SolveOptions?)¶
public static SolveResult Solve(IReadOnlyList<PackageCandidate> candidates, SolveOptions? options = null)
Parameters¶
candidates IReadOnlyList<PackageCandidate>
options SolveOptions?