. * * $Id: savage2.php,v 1.1 2008/05/22 14:16:11 tombuskens Exp $ */ [savage2] status = "\x01" require_once GAMEQ_BASE . 'Protocol.php'; /** * Savage 2 Protocol * * @author Tom Buskens * @version $Revision: 1.1 $ */ class GameQ_Protocol_savage2 extends GameQ_Protocol { /* * status packet */ public function status() { $this->p->skip(12); $this->r->add('hostname', $this->p->readString()); $this->r->add('num_players', $this->p->readInt8()); $this->r->add('max_players', $this->p->readInt8()); $this->r->add('time', $this->p->readString()); $this->r->add('map', $this->p->readString()); $this->r->add('nextmap', $this->p->readString()); $this->r->add('location', $this->p->readString()); $this->r->add('min_players', $this->p->readInt8()); $this->r->add('gametype', $this->p->readString()); $this->r->add('version', $this->p->readString()); $this->r->add('min_level', $this->p->readInt8()); } } ?>