]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/terraintype.h
Rework article numbers
[r2c2.git] / source / libr2c2 / terraintype.h
index 8bd59eaf8605d6347739a19543a0b5ac2c4f9c2b..6d26a020a2644d6bd14573147154b993d8789c78 100644 (file)
@@ -9,7 +9,7 @@ namespace R2C2 {
 class TerrainType: public ObjectType
 {
 public:
-       class Loader: public Msp::DataFile::ObjectLoader<TerrainType>
+       class Loader: public Msp::DataFile::DerivedObjectLoader<TerrainType, ObjectType::Loader>
        {
        public:
                Loader(TerrainType &);
@@ -37,7 +37,7 @@ private:
        float elevation_granularity;
 
 public:
-       TerrainType(const ArticleNumber & = ArticleNumber());
+       TerrainType();
 
        unsigned get_n_surface_types() const { return surface_types.size(); }
        const SurfaceType &get_surface_type(unsigned) const;