feat: add interactable component and test button

This commit is contained in:
2026-10-16 23:25:11 +02:00
parent faba4171ec
commit 7dd5ee7903
14 changed files with 236 additions and 6 deletions
@@ -0,0 +1,17 @@
#ifndef LIGHTKEEPER_INTERACTABLE_H
#define LIGHTKEEPER_INTERACTABLE_H
#include <destrum/ObjectModel/Component.h>
class Interactable : public Component {
public:
virtual void Interact(GameObject& interactor) = 0;
[[nodiscard]] static Interactable* FindOnObjectOrParents(GameObject* object);
protected:
Interactable(GameObject& parent, const std::string& name)
: Component(parent, name) {}
};
#endif // LIGHTKEEPER_INTERACTABLE_H