-
This commit is contained in:
@@ -11,6 +11,8 @@ import ru.m.tankz.proto.GamesRequest;
|
||||
import ru.m.tankz.proto.GamesResponse;
|
||||
import ru.m.tankz.proto.CreateGameRequest;
|
||||
import ru.m.tankz.proto.CreateGameResponse;
|
||||
import ru.m.tankz.proto.JoinGameRequest;
|
||||
import ru.m.tankz.proto.JoinGameResponse;
|
||||
|
||||
class PacketBuilder implements IPacketBuilder {
|
||||
|
||||
@@ -29,6 +31,8 @@ class PacketBuilder implements IPacketBuilder {
|
||||
0x0002 => GamesResponse,
|
||||
0x0003 => CreateGameRequest,
|
||||
0x0004 => CreateGameResponse,
|
||||
0x0005 => JoinGameRequest,
|
||||
0x0006 => JoinGameResponse,
|
||||
]
|
||||
];
|
||||
|
||||
@@ -47,6 +51,7 @@ class PacketBuilder implements IPacketBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
throw "Unsupported packet(" + Type.getClassName(Type.getClass(packet)).split(".").pop() + ")";
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user