1 #ifndef DAMAGESOURCE_H_
2 #define DAMAGESOURCE_H_
4 #include <msp/game/component.h>
6 struct DamageSourceSetup
12 class DamageSource: public Msp::Game::Component
15 using Setup = DamageSourceSetup;
21 DamageSource(Msp::Game::Handle<Msp::Game::Entity>, const Setup &);
23 unsigned get_amount() const { return setup.amount; }
24 unsigned get_type() const { return setup.type; }