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,57 +1,57 @@
|
|||
<?php
|
||||
/**
|
||||
* This file is part of GameQ.
|
||||
*
|
||||
* GameQ is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GameQ is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* $Id: freelancer.php,v 1.2 2008/02/22 13:33:40 tombuskens Exp $
|
||||
*/
|
||||
|
||||
[freelancer]
|
||||
status = "\x00\x02\xf1\x26\x01\x26\xf0\x90\xa6\xf0\x26\x57\x4e\xac\xa0\xec\xf8\x68\xe4\x8d\x21"
|
||||
|
||||
require_once GAMEQ_BASE . 'Protocol.php';
|
||||
|
||||
|
||||
/**
|
||||
* Freelancer protocol
|
||||
* UNTESTED
|
||||
*
|
||||
* @author Tom Buskens <t.buskens@deviation.nl>
|
||||
* @version $Revision: 1.2 $
|
||||
*/
|
||||
class GameQ_Protocol_freelancer extends GameQ_Protocol
|
||||
{
|
||||
/*
|
||||
* status packet
|
||||
*/
|
||||
public function status()
|
||||
{
|
||||
// Server name length @ 3
|
||||
$this->p->skip(3);
|
||||
$name_length = $this->p->readInt8() - 90;
|
||||
|
||||
// Max players @ 20
|
||||
$this->p->skip(17);
|
||||
$this->r->add('max_players', $this->p->readInt8() - 1);
|
||||
// Num players @ 24
|
||||
$this->p->skip(3);
|
||||
$this->r->add('num_players', $this->p->readInt8() - 1);
|
||||
|
||||
// Servername @ 91
|
||||
$this->p->skip(66);
|
||||
$this->r->add('servername', $this->p->read($name_length));
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* This file is part of GameQ.
|
||||
*
|
||||
* GameQ is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* GameQ is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* $Id: freelancer.php,v 1.2 2008/02/22 13:33:40 tombuskens Exp $
|
||||
*/
|
||||
|
||||
[freelancer]
|
||||
status = "\x00\x02\xf1\x26\x01\x26\xf0\x90\xa6\xf0\x26\x57\x4e\xac\xa0\xec\xf8\x68\xe4\x8d\x21"
|
||||
|
||||
require_once GAMEQ_BASE . 'Protocol.php';
|
||||
|
||||
|
||||
/**
|
||||
* Freelancer protocol
|
||||
* UNTESTED
|
||||
*
|
||||
* @author Tom Buskens <t.buskens@deviation.nl>
|
||||
* @version $Revision: 1.2 $
|
||||
*/
|
||||
class GameQ_Protocol_freelancer extends GameQ_Protocol
|
||||
{
|
||||
/*
|
||||
* status packet
|
||||
*/
|
||||
public function status()
|
||||
{
|
||||
// Server name length @ 3
|
||||
$this->p->skip(3);
|
||||
$name_length = $this->p->readInt8() - 90;
|
||||
|
||||
// Max players @ 20
|
||||
$this->p->skip(17);
|
||||
$this->r->add('max_players', $this->p->readInt8() - 1);
|
||||
// Num players @ 24
|
||||
$this->p->skip(3);
|
||||
$this->r->add('num_players', $this->p->readInt8() - 1);
|
||||
|
||||
// Servername @ 91
|
||||
$this->p->skip(66);
|
||||
$this->r->add('servername', $this->p->read($name_length));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue