feat: added HitableInterface for objects that can be hit

main
Sara 2024-02-15 12:41:33 +01:00
parent 3ec83d397f
commit 046fd8bf9f
1 changed files with 12 additions and 0 deletions

12
src/hitable_interface.hpp Normal file
View File

@ -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