ModManifest
A class in TavernLib, TavernLib.Backend.Mods.
One version of one mod, from a source's manifests folder (schema version 2 only).
- Listed in TavernLib.Backend.Mods
- Documented in Sources and reconcile
Constructors
| Member | What it is |
|---|---|
ModManifest() | Created by TavernLib; mods don't make one. |
Fields
1 private and internal field
Properties
| Member | What it is |
|---|---|
List<ModArtifact> Artifacts { get; private set; } | Every build, including ones with targets or packages this build doesn't know. |
string Author { get; private set; } | The author. Defaults to the part of the id before the first dot. |
Dictionary<string, string> Dependencies { get; private set; } | Mod id to minimum version. |
string Description { get; private set; } | The description. Empty if left out. |
string Id { get; private set; } | The mod id, Author.Repo. |
string Name { get; private set; } | The display name. Defaults to the id. |
bool ParityRequired { get; private set; } | True if players joining a server with this mod must have the same version. Required in the manifest. |
List<string> Scenes { get; private set; } | Scenes the mod works in (normal, quest, tutorial), or null for every scene. |
string SourceRepo { get; private set; } | The source the manifest was fetched from. |
string Version { get; private set; } | The version, MAJOR.MINOR.PATCH. |
Methods
| Member | What it is |
|---|---|
ModArtifact ArtifactFor(string target) | The usable build for a target, or null. |
static ModManifest FromJson(JObject d, string sourceRepo) | Parses a manifest. null (with a warning) for an unsupported schema; throws ModManagerException for a broken one. |
static bool RunsIn(List<string> scenes, string scene) | True if the scene list is null, the scene is null, or the list has the scene. |
4 private and internal methods
Used in
Members of other types that take, return or hold a ModManifest:
ModDependencyResolver.ResolveDependencies, ModInstaller.CollectLibraryDependencies, ModInstaller.InstallMod, ModInstaller.RefreshRecordMetadata, ModReconciler.Pass.InstallClosure, ModReconciler.Pass.Intact, ModRecord.Build, ModRepoClient.FetchLatest, ModRepoClient.FetchManifest, ModRepoClient.FetchManifestLeaf.