19 lines
400 B
C++
19 lines
400 B
C++
#pragma once
|
|
|
|
#include "break_utopia/hit_box.h"
|
|
#include "break_utopia/macros.h"
|
|
#include "scene/resources/packed_scene.h"
|
|
|
|
class DestructableObject : public HitBox {
|
|
GDCLASS(DestructableObject, HitBox);
|
|
static void _bind_methods();
|
|
|
|
protected:
|
|
virtual void damaged(int level) override;
|
|
|
|
private:
|
|
Ref<PackedScene> destroyed_object{};
|
|
|
|
public:
|
|
GET_SET_FNS(Ref<PackedScene>, destroyed_object);
|
|
};
|