]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - include/imap.h
Merge branch 'focus-ok-button' into 'master'
[xonotic/netradiant.git] / include / imap.h
index 7af4c4721335f9bb016b1f2ba2b8b58c9e7ab037..4661a794768fb349f2bf3247aee9567dfbedfec9 100644 (file)
@@ -59,6 +59,7 @@ typedef void ( *GraphTraversalFunc )( scene::Node& root, const scene::Traversabl
 class MapFormat
 {
 public:
+virtual ~MapFormat() = default;
 INTEGER_CONSTANT( Version, 2 );
 STRING_CONSTANT( Name, "map" );
 mutable bool wrongFormat;
@@ -66,7 +67,7 @@ mutable bool wrongFormat;
 /// \brief Read a map graph into \p root from \p outputStream, using \p entityTable to create entities.
 virtual void readGraph( scene::Node& root, TextInputStream& inputStream, EntityCreator& entityTable ) const = 0;
 /// \brief Write the map graph obtained by applying \p traverse to \p root into \p outputStream.
-virtual void writeGraph( scene::Node& root, GraphTraversalFunc traverse, TextOutputStream& outputStream ) const = 0;
+virtual void writeGraph( scene::Node& root, GraphTraversalFunc traverse, TextOutputStream& outputStream, bool writeComments ) const = 0;
 };