xml.append("</TileImprovements>\n");
return xml.toString();
}
public TileImprovementTypeManager initializeFromNode(Realm realm, Node node) {
TileImprovementTypeManager tileImprovementTypeManager = new TileImprovementTypeManager();
for (Node tileImprovementNode = node.getFirstChild(); tileImprovementNode != null; tileImprovementNode = tileImprovementNode.getNextSibling()) {
if (tileImprovementNode.getNodeType() == Node.ELEMENT_NODE) {
TileImprovementType tileImprovement = (new TileImprovementImplXMLConverter()).initializeFromNode(realm, tileImprovementNode);
tileImprovementTypeManager.addImprovement(tileImprovement);
}
}
for (Node tileImprovementNode = node.getFirstChild(); tileImprovementNode != null; tileImprovementNode = tileImprovementNode.getNextSibling()) {
if (tileImprovementNode.getNodeType() == Node.ELEMENT_NODE) {
new TileImprovementImplXMLConverter().setPrerequisitesFromNode(tileImprovementTypeManager, tileImprovementNode);