]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/mapxml/plugin.cpp
Merge branch 'msys2' into 'master'
[xonotic/netradiant.git] / plugins / mapxml / plugin.cpp
index b144a415f9fd3b4226c72fd330c35ca17485e7f0..516e06be7d2b04828d86dab5a6960548d7cb9e3f 100644 (file)
@@ -48,12 +48,15 @@ MapXMLDependencies() :
        m_patchDef2Doom3Module( "def2doom3" ),
        m_patchDoom3Module( "doom3" ){
 }
+
 BrushCreator& getBrushDoom3(){
        return GlobalBrushModule::getTable();
 }
+
 PatchCreator& getPatchDoom3(){
        return *m_patchDoom3Module.getTable();
 }
+
 PatchCreator& getPatchDef2Doom3(){
        return *m_patchDef2Doom3Module.getTable();
 }
@@ -63,11 +66,13 @@ class MapXMLAPI : public TypeSystemRef, public MapFormat
 {
 public:
 typedef MapFormat Type;
+
 STRING_CONSTANT( Name, "xmldoom3" );
 
 MapXMLAPI(){
        GlobalFiletypesModule::getTable().addType( Type::Name(), Name(), filetype_t( "xml doom3 maps", "*.xmap" ) );
 }
+
 MapFormat* getTable(){
        return this;
 }
@@ -75,7 +80,8 @@ MapFormat* getTable(){
 void readGraph( scene::Node& root, TextInputStream& inputStream, EntityCreator& entityTable ) const {
        Map_Read( root, inputStream, entityTable );
 }
-void writeGraph( scene::Node& root, GraphTraversalFunc traverse, TextOutputStream& outputStream ) const {
+
+void writeGraph( scene::Node& root, GraphTraversalFunc traverse, TextOutputStream& outputStream, bool writeComments ) const {
        Map_Write( root, traverse, outputStream );
 }
 };
@@ -85,7 +91,6 @@ typedef SingletonModule<MapXMLAPI, MapXMLDependencies> MapXMLModule;
 MapXMLModule g_MapXMLModule;
 
 
-
 extern "C" void RADIANT_DLLEXPORT Radiant_RegisterModules( ModuleServer& server ){
        GlobalErrorStream::instance().setOutputStream( server.getErrorStream() );
        GlobalOutputStream::instance().setOutputStream( server.getOutputStream() );