]> git.tdb.fi Git - libs/game.git/blobdiff - examples/bassteroids/source/gamecontroller.h
Load the various setups through resources
[libs/game.git] / examples / bassteroids / source / gamecontroller.h
index 1f0d3cfdea9ec607a84aea3b8979f59f48bf6ae8..cebdff32f85a4076189bda516a0d2b6283c224f8 100644 (file)
@@ -15,7 +15,7 @@ private:
        };
 
        std::minstd_rand rng;
-       AsteroidSetup asteroid_setup;
+       const AsteroidSetup &asteroid_setup;
        State state = LEVEL_START;
        unsigned level = 1;
        std::vector<Msp::Game::Owned<Asteroid>> asteroids;
@@ -24,6 +24,7 @@ public:
        GameController(Msp::Game::Stage &);
 
        void tick(Msp::Time::TimeDelta) override;
+       void deferred_tick() override;
 };
 
 #endif