use of delta.games.lotro.LotroCoreConfig in project lotro-companion by dmorcellet.
the class TraitPoints method loadRegistry.
private TraitPointsRegistry loadRegistry() {
LotroCoreConfig cfg = LotroCoreConfig.getInstance();
File loreDir = cfg.getLoreDir();
File registryFile = new File(loreDir, "traitPoints.xml");
TraitPointsRegistryXMLParser parser = new TraitPointsRegistryXMLParser();
TraitPointsRegistry registry = parser.parseXML(registryFile);
if (registry == null) {
registry = new TraitPointsRegistry();
}
return registry;
}
use of delta.games.lotro.LotroCoreConfig in project lotro-tools by dmorcellet.
the class WarbandsGenerator method doIt.
private void doIt() {
LotroCoreConfig cfg = LotroCoreConfig.getInstance();
File loreDir = cfg.getLoreDir();
File warbandsFile = new File(loreDir, "warbands.xml");
WarbandsRegistry r = buildRegistry();
WarbandsRegistryXMLWriter w = new WarbandsRegistryXMLWriter();
w.write(warbandsFile, r, EncodingNames.UTF_8);
}
Aggregations