Search in sources :

Example 1 with TraitPointsStatusXMLWriter

use of delta.games.lotro.stats.traitPoints.io.xml.TraitPointsStatusXMLWriter in project lotro-companion by dmorcellet.

the class TraitPoints method save.

/**
 * Save the trait points status for a character.
 * @param character Targeted character.
 * @param status Status to save.
 * @return <code>true</code> if it succeeds, <code>false</code> otherwise.
 */
public boolean save(CharacterFile character, TraitPointsStatus status) {
    File toFile = getStatusFile(character);
    TraitPointsStatusXMLWriter writer = new TraitPointsStatusXMLWriter();
    boolean ok = writer.write(toFile, status, EncodingNames.UTF_8);
    return ok;
}
Also used : TraitPointsStatusXMLWriter(delta.games.lotro.stats.traitPoints.io.xml.TraitPointsStatusXMLWriter) CharacterFile(delta.games.lotro.character.CharacterFile) File(java.io.File)

Aggregations

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