mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-11-16 16:58:32 +01:00
15 lines
331 B
JavaScript
15 lines
331 B
JavaScript
const Quake1 = require('./quake1');
|
|
|
|
class Hexen2 extends Quake1 {
|
|
constructor() {
|
|
super();
|
|
this.sendHeader = '\xFFstatus\x0a';
|
|
this.responseHeader = '\xffn';
|
|
}
|
|
async run(state) {
|
|
await super.run(state);
|
|
state.gamePort = this.options.port - 50;
|
|
}
|
|
}
|
|
|
|
module.exports = Hexen2;
|