Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| SniperElite2 | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| __construct | |
0.00% |
0 / 1 |
|
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 | * Sniper Elite V2 Protocol implementation. |
| 17 | * |
| 18 | * Sniper Elite V2 uses the Unreal Engine 2 protocol for server queries. |
| 19 | * |
| 20 | * @deprecated This is a legacy protocol. Sniper Elite V2 multiplayer servers |
| 21 | * have been shut down by the publisher and are no longer operational. |
| 22 | * No active servers exist for this game. Research shows that servers |
| 23 | * appearing as "Sniper Elite V2" on GameTracker are actually Sniper Elite 4 |
| 24 | * servers using Source protocol (not Unreal2). |
| 25 | */ |
| 26 | class SniperElite2 extends Unreal2 |
| 27 | { |
| 28 | /** |
| 29 | * Protocol name. |
| 30 | */ |
| 31 | public string $name = 'SniperElite2'; |
| 32 | |
| 33 | /** |
| 34 | * List of supported games. |
| 35 | * |
| 36 | * @var array<string> |
| 37 | */ |
| 38 | public array $supportedGames = ['Sniper Elite V2']; |
| 39 | |
| 40 | /** |
| 41 | * Protocol identifier. |
| 42 | */ |
| 43 | public string $protocol = 'sniperelite2'; |
| 44 | |
| 45 | /** |
| 46 | * Constructor. |
| 47 | */ |
| 48 | public function __construct(?string $address = null, ?int $queryport = null) |
| 49 | { |
| 50 | parent::__construct($address, $queryport); |
| 51 | } |
| 52 | } |