Class ModDependencyAttribute
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
Applied to a mod assembly multiple times for each required dependency. Superseded by this mod's "modinfo.json" file, if available.
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class ModDependencyAttribute : Attribute
- Inheritance
-
ModDependencyAttribute
- Inherited Members
- Extension Methods
Constructors
ModDependencyAttribute(string, string)
public ModDependencyAttribute(string modID, string version = "")
Parameters
Properties
ModID
The required mod id (domain) of this dependency.
public string ModID { get; }
Property Value
Version
The minimum version requirement of this dependency. May be empty if the no specific version is required.
public string Version { get; }