use of pcgen.persistence.CampaignFileLoader in project pcgen by PCGen.
the class Main method startupWithoutGUI.
private static boolean startupWithoutGUI() {
loadProperties(false);
validateEnvironment(false);
PCGenTaskExecutor executor = new PCGenTaskExecutor();
executor.addPCGenTask(createLoadPluginTask());
executor.addPCGenTask(new GameModeFileLoader());
executor.addPCGenTask(new CampaignFileLoader());
executor.execute();
UIDelegate uiDelegate = new ConsoleUIDelegate();
BatchExporter exporter = new BatchExporter(exportSheet, uiDelegate);
boolean result = true;
if (partyFile != null) {
result = exporter.exportParty(partyFile, outputFile);
}
if (characterFile != null) {
result = exporter.exportCharacter(characterFile, outputFile);
}
return result;
}
Aggregations