Table of Contents

Class ModDependency

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Represents a mod dependency requirement of one mod for another.

public class ModDependency
Inheritance
ModDependency
Inherited Members

Constructors

ModDependency(string, string)

Creates a new ModDependancy object.

public ModDependency(string modID, string version = "")

Parameters

modID string

The ID of the required mod.

version string

The version of the required mod (default: empty string.)

Properties

ModID

The required mod id (domain) of this dependency.

public string ModID { get; }

Property Value

string

Version

The minimum version requirement of this dependency. May be empty if the no specific version is required.

public string Version { get; }

Property Value

string

Methods

ToString()

Returns the Mod Dependancy as a string.

public override string ToString()

Returns

string