mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-09-07 03:21:29 +02:00
16 lines
331 B
JavaScript
16 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;
|