]> git.tdb.fi Git - libs/game.git/blob - examples/bassteroids/source/asteroid.h
0e3232f42b6e0c22f147c3c1060f58362612ccf6
[libs/game.git] / examples / bassteroids / source / asteroid.h
1 #ifndef ASTEROID_H_
2 #define ASTEROID_H_
3
4 #include <msp/game/entity.h>
5 #include <msp/game/meshsource.h>
6
7 struct AsteroidSetup
8 {
9         Msp::Game::MeshSourceSetup mesh;
10 };
11
12 class Asteroid: public Msp::Game::Entity
13 {
14 public:
15         using Setup = AsteroidSetup;
16
17 private:
18         const Setup &setup;
19         Msp::Game::Owned<Msp::Game::MeshSource> mesh;
20
21 public:
22         Asteroid(Msp::Game::Handle<Entity>, const Setup &);
23 };
24
25 #endif