1 2 3 4 5 6 7 8 9 10 11 12 13 14
#pragma once #include "../Entity.h" class cAttackComponent { protected: cEntity * m_Self; public: cAttackComponent(cEntity * a_Entity) : m_Self(a_Entity){} virtual void OnAttackEntity(cEntity * a_Entity){} };