]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/tracktype.h
Add state loading and saving to engineer
[r2c2.git] / source / libmarklin / tracktype.h
index 310d17f4eca60fc748ef79e7d5a6964add537f69..ba1b95ff6aee5148d5335f47648e9c2e5de84b00 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of the MSP Märklin suite
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Copyright © 2006-200 Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
 
@@ -17,17 +17,12 @@ namespace Marklin {
 class TrackType
 {
 public:
-       class Loader: public Msp::DataFile::Loader
+       class Loader: public Msp::DataFile::BasicLoader<TrackType>
        {
-       private:
-               TrackType &ttype;
-
        public:
                Loader(TrackType &);
-               TrackType &get_object() { return ttype; }
        private:
                virtual void finish();
-
                void part();
                void position(float, float, float);
        };