use of delta.games.lotro.stats.traitPoints.io.xml.TraitPointsStatusXMLParser in project lotro-companion by dmorcellet.
the class TraitPoints method load.
/**
* Load the trait points for a character.
* @param character Targeted character.
* @return A trait point status.
*/
public TraitPointsStatus load(CharacterFile character) {
File fromFile = getStatusFile(character);
TraitPointsStatus status = null;
if (fromFile.exists()) {
TraitPointsStatusXMLParser parser = new TraitPointsStatusXMLParser();
status = parser.parseXML(fromFile);
}
if (status == null) {
status = new TraitPointsStatus();
}
return status;
}
Aggregations