Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Skulltag | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php declare(strict_types=1); |
| 2 | |
| 3 | /** |
| 4 | * Clansuite Server Query |
| 5 | * |
| 6 | * SPDX-FileCopyrightText: 2003-2025 Jens A. Koch |
| 7 | * SPDX-License-Identifier: MIT |
| 8 | * |
| 9 | * For the full copyright and license information, please view |
| 10 | * the LICENSE file that was distributed with this source code. |
| 11 | */ |
| 12 | |
| 13 | namespace Clansuite\ServerQuery\ServerProtocols; |
| 14 | |
| 15 | /** |
| 16 | * Skulltag Server Query Protocol. |
| 17 | * |
| 18 | * - Implements the Launcher Protocol (same as Zandronum) |
| 19 | * - Sends a challenge packet |
| 20 | * - Decompresses Huffman data |
| 21 | * - Parses server + player info |
| 22 | */ |
| 23 | class Skulltag extends LauncherProtocol |
| 24 | { |
| 25 | /** |
| 26 | * Protocol name. |
| 27 | */ |
| 28 | public string $name = 'Skulltag'; |
| 29 | |
| 30 | /** |
| 31 | * Protocol identifier. |
| 32 | */ |
| 33 | public string $protocol = 'Skulltag'; |
| 34 | |
| 35 | /** |
| 36 | * List of supported games. |
| 37 | * |
| 38 | * @var array<string> |
| 39 | */ |
| 40 | public array $supportedGames = ['Skulltag']; |
| 41 | |
| 42 | /** |
| 43 | * Constructor. |
| 44 | */ |
| 45 | public function __construct(string $address, int $queryport) |
| 46 | { |
| 47 | parent::__construct($address, $queryport); |
| 48 | $this->gameName = 'Skulltag'; |
| 49 | } |
| 50 | } |