]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/entity.cpp
Group import/export callbacks
[xonotic/netradiant.git] / radiant / entity.cpp
index feb08f6a81107dfc47007415f7a185c7f6910c37..1c02828e728aef0fda60f8fffa5f6e6f0ade3126 100644 (file)
@@ -547,16 +547,16 @@ void LightRadiiImport( EntityCreator& self, bool value ){
 }
 typedef ReferenceCaller<EntityCreator, void(bool), LightRadiiImport> LightRadiiImportCaller;
 
-void LightRadiiExport( EntityCreator& self, const BoolImportCallback& importer ){
+void LightRadiiExport( EntityCreator& self, const ImportExportCallback<bool>::Import_t& importer ){
        importer( self.getLightRadii() );
 }
-typedef ReferenceCaller<EntityCreator, void(const BoolImportCallback&), LightRadiiExport> LightRadiiExportCaller;
+typedef ReferenceCaller<EntityCreator, void(const ImportExportCallback<bool>::Import_t&), LightRadiiExport> LightRadiiExportCaller;
 
 void Entity_constructPreferences( PreferencesPage& page ){
        page.appendCheckBox(
                "Show", "Light Radii",
-               LightRadiiImportCaller( GlobalEntityCreator() ),
-               LightRadiiExportCaller( GlobalEntityCreator() )
+               {LightRadiiImportCaller( GlobalEntityCreator() ),
+               LightRadiiExportCaller( GlobalEntityCreator() )}
                );
 }
 void Entity_constructPage( PreferenceGroup& group ){