feat: added HitableInterface for objects that can be hit
parent
3ec83d397f
commit
046fd8bf9f
|
@ -0,0 +1,12 @@
|
|||
#ifndef HITABLE_INTERFACE_HPP
|
||||
#define HITABLE_INTERFACE_HPP
|
||||
|
||||
namespace godot {
|
||||
class Node;
|
||||
|
||||
class HitableInterface {
|
||||
public:
|
||||
virtual void damage(Node *origin, int amount) = 0; };
|
||||
}
|
||||
|
||||
#endif // !HITABLE_INTERFACE_HPP
|
Loading…
Reference in New Issue