. * * $Id: ghostrecon.php,v 1.1 2007/07/02 10:14:32 tombuskens Exp $ */ [ghostrecon] status = "\xc0\xde\xf1\x11\x42\x06\x00\xf5\x03\x00\x78\x30\x63" require_once GAMEQ_BASE . 'Protocol.php'; /** * Ghost Recon protocol * * @author Tom Buskens * @version $Revision: 1.1 $ */ class GameQ_Protocol_ghostrecon extends GameQ_Protocol { /* * Status */ public function status() { // Unknown $this->p->skip(25); $this->r->add('servername', $this->readGhostString()); $this->r->add('map', $this->readGhostString()); $this->r->add('mission', $this->readGhostString()); $this->r->add('gametype', $this->readGhostString()); } /** * Read a Ghost Recon string * * @return string The string */ private function readGhostString() { if ($this->p->getLength() < 4) return ''; $this->p->skip(4); return $this->p->readString(); } } ?>