]> git.tdb.fi Git - libs/game.git/blob - examples/bassteroids/source/bullet.h
Pass bullet's initial transform values directly to the constructor
[libs/game.git] / examples / bassteroids / source / bullet.h
1 #ifndef BULLET_H_
2 #define BULLET_H_
3
4 #include <msp/game/meshsource.h>
5 #include "physicalentity.h"
6
7 struct BulletSetup
8 {
9         PhysicalSetup physical;
10         Msp::Game::MeshSourceSetup mesh;
11 };
12
13 class Bullet: public PhysicalEntity
14 {
15 private:
16         Msp::Game::Owned<Msp::Game::MeshSource> mesh;
17
18 public:
19         using Setup = BulletSetup;
20
21         Bullet(Msp::Game::Handle<Msp::Game::Entity>, const Setup &, const Msp::Game::TransformValues & = Msp::Game::TransformValues());
22 };
23
24 #endif