mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Release 3.0.0
This commit is contained in:
parent
f70112d092
commit
d65a24dc18
4 changed files with 114 additions and 93 deletions
|
|
@ -24,7 +24,7 @@ class GameResolver {
|
|||
|
||||
printReadme() {
|
||||
let out = '';
|
||||
out += '| GameDig Type ID | Name | Notes\n';
|
||||
out += '| GameDig Type ID | Name | See Also\n';
|
||||
out += '|---|---|---\n';
|
||||
|
||||
const sorted = this.games
|
||||
|
|
@ -36,8 +36,16 @@ class GameResolver {
|
|||
let keysOut = game.keys.map(key => '`'+key+'`').join('<br>');
|
||||
out += "| " + keysOut.padEnd(10, " ") + " "
|
||||
+ "| " + game.pretty;
|
||||
if(game.extra.doc_notes)
|
||||
out += " | [Notes](#"+game.extra.doc_notes+")";
|
||||
let notes = [];
|
||||
if(game.extra.doc_notes) {
|
||||
notes.push("[Notes](#" + game.extra.doc_notes + ")");
|
||||
}
|
||||
if(game.options.protocol === 'valve') {
|
||||
notes.push('[Valve Protocol](#valve)');
|
||||
}
|
||||
if(notes.length) {
|
||||
out += " | " + notes.join(', ');
|
||||
}
|
||||
out += "\n";
|
||||
}
|
||||
return out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue