mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
crlf -> ln conversion
This commit is contained in:
parent
50d3ef20a0
commit
f1467c5a04
94 changed files with 11388 additions and 11388 deletions
|
|
@ -1,24 +1,24 @@
|
|||
/*
|
||||
module.exports = require('./valve').extend({
|
||||
init: function() {
|
||||
this._super();
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
// supposedly, gamespy3 is the "official" query protocol for jcmp,
|
||||
// but it's broken (requires useOnlySingleSplit), and doesn't include player names
|
||||
module.exports = require('./gamespy3').extend({
|
||||
init: function() {
|
||||
this._super();
|
||||
this.useOnlySingleSplit = true;
|
||||
},
|
||||
finalizeState: function(state) {
|
||||
this._super(state);
|
||||
if(!state.players.length && parseInt(state.raw.numplayers)) {
|
||||
for(var i = 0; i < parseInt(state.raw.numplayers); i++) {
|
||||
state.players.push({});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
/*
|
||||
module.exports = require('./valve').extend({
|
||||
init: function() {
|
||||
this._super();
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
// supposedly, gamespy3 is the "official" query protocol for jcmp,
|
||||
// but it's broken (requires useOnlySingleSplit), and doesn't include player names
|
||||
module.exports = require('./gamespy3').extend({
|
||||
init: function() {
|
||||
this._super();
|
||||
this.useOnlySingleSplit = true;
|
||||
},
|
||||
finalizeState: function(state) {
|
||||
this._super(state);
|
||||
if(!state.players.length && parseInt(state.raw.numplayers)) {
|
||||
for(var i = 0; i < parseInt(state.raw.numplayers); i++) {
|
||||
state.players.push({});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue