use of com.faforever.client.fa.relay.GpgGameMessage in project downlords-faf-client by FAForever.
the class IceAdapterCallbacks method onGpgNetMessageReceived.
public void onGpgNetMessageReceived(String header, List<Object> chunks) {
log.debug("Message from game: '{}' '{}'", header, chunks);
eventBus.post(new GpgGameMessageEvent(new GpgGameMessage(header, chunks)));
}
use of com.faforever.client.fa.relay.GpgGameMessage in project downlords-faf-client by FAForever.
the class IceAdapterImpl method onGpgGameMessage.
@Subscribe
public void onGpgGameMessage(GpgGameMessageEvent event) {
GpgGameMessage gpgGameMessage = event.getGpgGameMessage();
GpgClientCommand command = gpgGameMessage.getCommand();
if (command == GpgClientCommand.REHOST) {
eventBus.post(new RehostRequestEvent());
return;
}
if (command == GpgClientCommand.GAME_FULL) {
eventBus.post(new GameFullEvent());
return;
}
fafService.sendGpgGameMessage(gpgGameMessage);
}
Aggregations