21 lines
475 B
C++
21 lines
475 B
C++
#ifndef LIGHTKEEPER_ACTIVATABLE_H
|
|
#define LIGHTKEEPER_ACTIVATABLE_H
|
|
|
|
#include <destrum/Event.h>
|
|
#include <destrum/ObjectModel/Component.h>
|
|
|
|
class Activatable : public Component {
|
|
public:
|
|
void Activate(GameObject& instigator);
|
|
|
|
Event<GameObject&> OnActivated;
|
|
|
|
protected:
|
|
Activatable(GameObject& parent, const std::string& name)
|
|
: Component(parent, name) {}
|
|
|
|
virtual void OnActivate(GameObject& instigator) = 0;
|
|
};
|
|
|
|
#endif // LIGHTKEEPER_ACTIVATABLE_H
|