private static org.ucam.srcf.assassins.plugins.vanilla.proto.Kill convertKill(Kill stateChange) { return org.ucam.srcf.assassins.plugins.vanilla.proto.Kill.newBuilder() .setKiller(PlayerConverter.convertStorageToProto(stateChange.getKiller())) .setVictim(PlayerConverter.convertStorageToProto(stateChange.getVictim())) .build(); }
private static Kill convertKill(org.ucam.srcf.assassins.plugins.vanilla.proto.Kill kill) { Kill domainKill = new Kill(); domainKill.setKiller(PlayerConverter.convertProtoToStorage(kill.getKiller())); domainKill.setVictim(PlayerConverter.convertProtoToStorage(kill.getVictim())); return domainKill; }