Search in sources :

Example 1 with TraitPointsRegistryXMLParser

use of delta.games.lotro.stats.traitPoints.io.xml.TraitPointsRegistryXMLParser 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;
}
Also used : LotroCoreConfig(delta.games.lotro.LotroCoreConfig) TraitPointsRegistryXMLParser(delta.games.lotro.stats.traitPoints.io.xml.TraitPointsRegistryXMLParser) CharacterFile(delta.games.lotro.character.CharacterFile) File(java.io.File)

Aggregations

LotroCoreConfig (delta.games.lotro.LotroCoreConfig)1 CharacterFile (delta.games.lotro.character.CharacterFile)1 TraitPointsRegistryXMLParser (delta.games.lotro.stats.traitPoints.io.xml.TraitPointsRegistryXMLParser)1 File (java.io.File)1