feat: add Activateable in Lightkeeper
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user