ModsCommandModule
A static class in TavernLib, TavernLib.ModulePorts.
TavernLib's modmanager console module, with list (every mod in Mods and its state) and addrepo (adds a trusted mod source after checking its index). Server.
- Listed in TavernLib.ModulePorts
- Attributes
Module - Documented in Internals
Methods
6 private and internal methods
| Member | What it is |
|---|---|
private static string AddRepo(string url) | modmanager addrepo: server only, checks that a URL serves a mod index and adds it to mod_repos.json as a trusted source. |
private static string List() | modmanager list: server only, lists the community mods in Mods/ with their state. |
internal static string ListFor(string gameDir) | Internal: the modmanager list text for a game folder: tracked mods with version, state and targets, then untracked ones. Flags damaged installs. |
private static string RepoShorthand(string url) | Builds the "owner/repo" shorthand from a repo URL's path. |
private static string State(bool enabled) | Returns "enabled" or "disabled". |
private static string Targets(ModRecord record) | Lists the targets a mod record is installed for, or "nothing". |