ModArtifact
A class in TavernLib, TavernLib.Backend.Mods.
One build of a mod from its manifest: which targets it's for, where to download it and how it's packaged.
- Listed in TavernLib.Backend.Mods
- Documented in Sources and reconcile
Constructors
| Member | What it is |
|---|---|
ModArtifact() | Created by TavernLib; mods don't make one. |
Fields
3 private and internal fields
Properties
| Member | What it is |
|---|---|
string DownloadUrl { get; private set; } | Where to download the build. |
List<LibraryDependency> LibraryDependencies { get; private set; } | Libraries the build needs in UserLibs. |
string Package { get; private set; } | dll or zip, or something this build of TavernLib doesn't know. |
string Sha256 { get; private set; } | The download's expected SHA-256, lower-case hex. |
List<string> Targets { get; private set; } | The targets the build is for, such as server or client_windows. |
bool Usable { get; } | True for the dll and zip packages. |
Methods
| Member | What it is |
|---|---|
bool Builds(string target) | True when the build is usable and lists that target. |
static ModArtifact FromJson(JToken token, string idForMsg) | Parses one artifact. Throws ModManagerException when targets, download_url, sha256 or the libraries are missing or malformed. |
string InstallName(string modId) | The file name a dll build is saved as: the URL's file name if it ends in .dll, otherwise <modId>.dll. |
2 private and internal methods
Used in
Members of other types that take, return or hold a ModArtifact: