1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-06-16 11:13:15 +02:00

Rename SocketType -> EngineType.

This commit is contained in:
Anthony Birkett
2021-06-01 21:50:37 +01:00
parent 71bdac6f9d
commit da68be0fb1
7 changed files with 26 additions and 19 deletions
+1 -2
View File
@@ -25,7 +25,6 @@ use xPaw\SourceQuery\QueryResponse\RulesQueryResponse;
use xPaw\SourceQuery\QueryResponse\SourceInfoQueryResponse;
use xPaw\SourceQuery\Rcon\RconInterface;
use xPaw\SourceQuery\Socket\SocketInterface;
use xPaw\SourceQuery\Socket\SocketType;
final class SourceQuery
{
@@ -201,7 +200,7 @@ final class SourceQuery
}
// Old GoldSource protocol, HLTV still uses it.
if (self::S2A_INFO_OLD === $type && SocketType::GOLDSOURCE === $this->socket->getType()) {
if (self::S2A_INFO_OLD === $type && EngineType::GOLDSOURCE === $this->socket->getType()) {
return GoldSourceInfoQueryResponse::fromBuffer($buffer);
}