even more games with version
This commit is contained in:
parent
1607bc9f7a
commit
05f5b4d223
|
@ -112,6 +112,7 @@ export default class gamespy3 extends Core {
|
|||
if (state.raw.password === '1') state.password = true
|
||||
if ('maxplayers' in state.raw) state.maxplayers = parseInt(state.raw.maxplayers)
|
||||
if ('hostport' in state.raw) state.gamePort = parseInt(state.raw.hostport)
|
||||
if ('gamever' in state.raw) state.version = state.raw.gamever
|
||||
|
||||
if ('' in state.raw.playerTeamInfo) {
|
||||
for (const playerInfo of state.raw.playerTeamInfo['']) {
|
||||
|
|
|
@ -21,6 +21,7 @@ export default class mafia2mp extends Core {
|
|||
state.numplayers = parseInt(this.readString(reader))
|
||||
state.maxplayers = parseInt(this.readString(reader))
|
||||
state.raw.gamemode = this.readString(reader)
|
||||
state.version = state.raw.gamemode
|
||||
state.password = !!reader.uint(1)
|
||||
state.gamePort = this.options.port - 1
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ export default class teamspeak3 extends Core {
|
|||
if ('virtualserver_name' in state.raw) state.name = state.raw.virtualserver_name
|
||||
if ('virtualserver_maxclients' in state.raw) state.maxplayers = state.raw.virtualserver_maxclients
|
||||
if ('virtualserver_clientsonline' in state.raw) state.numplayers = state.raw.virtualserver_clientsonline
|
||||
if ('virtualserver_version' in state.raw) state.version = state.raw.virtualserver_version
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue