| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?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 Lesser 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 Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- namespace GameQ\Protocols;
- /**
- * Serious Sam Protocol Class
- *
- * @author ZCaliptium <[email protected]>
- */
- class Serioussam extends Gamespy
- {
- /**
- * String name of this protocol class
- *
- * @type string
- */
- protected $name = 'serioussam';
- /**
- * Longer string name of this protocol class
- *
- * @type string
- */
- protected $name_long = "Serious Sam";
- /**
- * query_port = client_port + 1
- *
- * @type int
- */
- protected $port_diff = 1;
- /**
- * Normalize settings for this protocol
- *
- * @type array
- */
- protected $normalize = [
- // General
- 'general' => [
- // target => source
- 'dedicated' => 'dedicated',
- 'gametype' => 'gametype',
- 'hostname' => 'hostname',
- 'mapname' => 'mapname',
- 'maxplayers' => 'maxplayers',
- 'mod' => 'activemod',
- 'numplayers' => 'numplayers',
- 'password' => 'password',
- ],
- // Individual
- 'player' => [
- 'name' => 'player',
- 'ping' => 'ping',
- 'score' => 'frags',
- ],
- ];
- }
|