1 #ifndef MSP_GAME_COMPONENT_H_
2 #define MSP_GAME_COMPONENT_H_
4 #include <msp/time/timedelta.h>
14 Handle<Entity> entity;
16 Component(Handle<Entity>);
18 virtual ~Component() = default;
20 Handle<Entity> get_entity() const { return entity; }
22 virtual void pre_tick() { }
23 virtual void tick(Time::TimeDelta) { }
24 virtual void post_tick() { }
27 } // namespace Msp::Game