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: * Zandronum / Skulltag Server Query Protocol.
17: *
18: * - Implements the Launcher Protocol (v0.61)
19: * - Sends a challenge packet
20: * - Decompresses Huffman data
21: * - Parses server + player info
22: * - Backward compatible with Skulltag
23: */
24: final class Zandronum extends LauncherProtocol
25: {
26: /**
27: * Protocol name.
28: */
29: public string $name = 'Zandronum';
30:
31: /**
32: * Protocol identifier.
33: */
34: public string $protocol = 'Zandronum';
35:
36: /**
37: * List of supported games.
38: *
39: * @var array<string>
40: */
41: public array $supportedGames = ['Zandronum'];
42:
43: /**
44: * Constructor.
45: */
46: public function __construct(string $address, int $queryport)
47: {
48: parent::__construct($address, $queryport);
49: $this->gameName = 'Zandronum';
50: }
51: }
52: