Table of Contents

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

id string

The id of the mod that this mod needs.

min Version

The lowest version of the dependency that is permitted, or null for no lower limit.

max Version

The highest version of the dependency that is permitted, or null for no upper limit.

required bool

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.

Properties

id

The id of the mod that this mod needs.

public string id { get; init; }

Property Value

string

max

The highest version of the dependency that is permitted, or null for no upper limit.

public Version? max { get; init; }

Property Value

Version

min

The lowest version of the dependency that is permitted, or null for no lower limit.

public Version? min { get; init; }

Property Value

Version

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; }

Property Value

bool