Implement saving monster definitions to XML
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user