mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
Move attributes to game protocol
This commit is contained in:
parent
67e0cd8809
commit
b56eff7783
2 changed files with 7 additions and 3 deletions
|
|
@ -9,4 +9,11 @@ export default class asa extends Epic {
|
|||
this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
|
||||
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
|
||||
}
|
||||
|
||||
async run (state) {
|
||||
await super.run(state)
|
||||
state.name = state.raw.attributes.CUSTOMSERVERNAME_s
|
||||
state.map = state.raw.attributes.MAPNAME_s
|
||||
state.password = state.raw.attributes.SERVERPASSWORD_b
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -126,9 +126,6 @@ export default class Epic extends Core {
|
|||
throw new Error('Server not found')
|
||||
}
|
||||
|
||||
state.name = desiredServer.attributes.CUSTOMSERVERNAME_s
|
||||
state.map = desiredServer.attributes.MAPNAME_s
|
||||
state.password = desiredServer.attributes.SERVERPASSWORD_b
|
||||
state.numplayers = desiredServer.totalPlayers
|
||||
state.maxplayers = desiredServer.settings.maxPublicPlayers
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue