#pragma once #include "Component.h" #include "Entity.h" #include class InteractionComponent : public Component { public: InteractionComponent(bool canInteract, bool isInteractable); ~InteractionComponent(); void init() override; void update() override; Entity* getClosestInteractableEntity(/*last direction key input*/ std::vector entities); bool interact(Entity* interactee); private: bool canInteract; bool isInteractable; };