feat: add Activateable in Lightkeeper

This commit is contained in:
2026-10-17 17:00:00 +02:00
parent 89a168f76d
commit 70c940c476
13 changed files with 354 additions and 5 deletions
@@ -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