mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Initial es6 async conversion work
This commit is contained in:
parent
a054557f10
commit
77b2cc1c7f
10 changed files with 773 additions and 748 deletions
|
|
@ -7,10 +7,10 @@ class Armagetron extends Core {
|
|||
this.byteorder = 'be';
|
||||
}
|
||||
|
||||
run(state) {
|
||||
async run(state) {
|
||||
const b = Buffer.from([0,0x35,0,0,0,0,0,0x11]);
|
||||
|
||||
this.udpSend(b,(buffer) => {
|
||||
await this.udpSend(b,(buffer) => {
|
||||
const reader = this.reader(buffer);
|
||||
|
||||
reader.skip(6);
|
||||
|
|
@ -37,7 +37,7 @@ class Armagetron extends Core {
|
|||
state.raw.uri = this.readString(reader);
|
||||
state.raw.globalids = this.readString(reader);
|
||||
this.finish(state);
|
||||
return true;
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue