]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/stage.h
Minor cleanups
[libs/demoscene.git] / source / stage.h
index 2933856c1d000428003bd8fc129e5db9d112940a..1ab32d83d27d07fa50be5510c5b7bf8216ab43db 100644 (file)
@@ -9,13 +9,27 @@ struct Stage
 {
        class UseInView: public Action
        {
+       public:
+               class Loader: public Msp::DataFile::DerivedObjectLoader<UseInView, Action::Loader>
+               {
+               public:
+                       Loader(UseInView &, Demo &);
+
+               private:
+                       void stage(const std::string &);
+                       void view(const std::string &);
+               };
+
        private:
-               Msp::GL::View &view;
-               Stage &stage;
+               Msp::GL::View *view;
+               Stage *stage;
 
        public:
+               UseInView();
                UseInView(Msp::GL::View &, Stage &);
 
+               virtual void validate() const;
+
                virtual void start(float, float);
        };