node-gamedig/protocols/hexen2.js

14 lines
318 B
JavaScript
Raw Normal View History

import quake1 from './quake1.js';
export default class hexen2 extends quake1 {
2017-08-09 12:32:09 +02:00
constructor() {
super();
this.sendHeader = '\xFFstatus\x0a';
this.responseHeader = '\xffn';
2017-08-09 12:32:09 +02:00
}
2019-01-12 12:45:09 +01:00
async run(state) {
await super.run(state);
state.gamePort = this.options.port - 50;
}
}