Class Mod.Dependency
- Namespace
- PolyMod
- Assembly
- PolyMod.dll
A dependency of a mod on a different mod, as the manifest gives it.
public record Mod.Dependency : IEquatable<Mod.Dependency>
- Inheritance
-
Mod.Dependency
- Implements
- Inherited Members
Constructors
Dependency(string, Version?, Version?, bool)
A dependency of a mod on a different mod, as the manifest gives it.
public Dependency(string id, Version? min, Version? max, bool required = true)
Parameters
idstringThe id of the mod that this mod needs.
minVersionThe lowest version of the dependency that is permitted, or null for no lower limit.
maxVersionThe highest version of the dependency that is permitted, or null for no upper limit.
requiredboolIf true, the mod gets the status DependenciesUnsatisfied when the dependency is missing or has a bad version. If false, PolyMod only writes a warning to the log.
Properties
id
The id of the mod that this mod needs.
public string id { get; init; }
Property Value
max
The highest version of the dependency that is permitted, or null for no upper limit.
public Version? max { get; init; }
Property Value
min
The lowest version of the dependency that is permitted, or null for no lower limit.
public Version? min { get; init; }
Property Value
required
If true, the mod gets the status DependenciesUnsatisfied when the dependency is missing or has a bad version. If false, PolyMod only writes a warning to the log.
public bool required { get; init; }