Implement saving monster definitions to XML

This commit is contained in:
2015-01-22 14:33:28 -05:00
parent 670e35f9d5
commit 3e0e3d3b8a
7 changed files with 376 additions and 71 deletions

View File

@@ -30,6 +30,10 @@ void Printer::CloseElement(std::string tagName) {
PushNode(top);
}
void Printer::PushElement(std::string tagName) {
PushNode(new Element(tagName));
}
void Printer::PushComment(std::string comment) {
PushNode(new Comment(comment));
}

View File

@@ -25,6 +25,7 @@ namespace ticpp {
~Printer();
void OpenElement(std::string tagName);
void CloseElement(std::string tagName);
void PushElement(std::string tagName);
void PushComment(std::string comment);
void PushStylesheet(std::string value, std::string href);
void PushNode(Node* node);