mirror of
https://github.com/ow-mods/ow-mod-db.git
synced 2025-12-11 20:15:24 +01:00
Add tags (#458)
* add tags * add tweaks tag * add integration category * a few more * tweaks * add tags to output
This commit is contained in:
parent
3b43076a8e
commit
6f6f4c4494
@ -207,6 +207,7 @@ export async function fetchMods(modsJson: string) {
|
||||
date: latestPrerelease.date,
|
||||
}
|
||||
: undefined,
|
||||
tags: modInfo.tags,
|
||||
};
|
||||
|
||||
return mod;
|
||||
|
||||
14
fetch-mods/globals.d.ts
vendored
14
fetch-mods/globals.d.ts
vendored
@ -1,3 +1,15 @@
|
||||
// Caution: must stay in sync with enum in mods.schema.json
|
||||
type ModTag =
|
||||
| "library"
|
||||
| "gameplay"
|
||||
| "tweaks"
|
||||
| "integration"
|
||||
| "tool"
|
||||
| "content"
|
||||
| "story"
|
||||
| "audiovisual"
|
||||
| "localization";
|
||||
|
||||
type ModDB = {
|
||||
mods: ModInfo[];
|
||||
};
|
||||
@ -11,6 +23,7 @@ type ModInfo = {
|
||||
utility?: boolean;
|
||||
parent?: string;
|
||||
authorDisplay?: string;
|
||||
tags: ModTag[];
|
||||
};
|
||||
|
||||
type Release = {
|
||||
@ -43,4 +56,5 @@ interface Mod extends Release {
|
||||
downloadUrl: string;
|
||||
date: string;
|
||||
};
|
||||
tags: ModTag[];
|
||||
}
|
||||
|
||||
@ -51,6 +51,23 @@
|
||||
"alpha": {
|
||||
"type": "boolean",
|
||||
"description": "True if this mod is made for Outer Wilds Alpha."
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"description": "List of tags that describe the mod, used for filtering mod lists.",
|
||||
"items": {
|
||||
"enum": [
|
||||
"library",
|
||||
"gameplay",
|
||||
"tweaks",
|
||||
"integration",
|
||||
"tool",
|
||||
"content",
|
||||
"story",
|
||||
"audiovisual",
|
||||
"localization"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user