25 lines
535 B
C++
25 lines
535 B
C++
#include "hitbox.h"
|
|
#include "health_status.h"
|
|
#include "macros.h"
|
|
|
|
void Hitbox::_bind_methods() {
|
|
BIND_HPROPERTY(Variant::OBJECT, health, PROPERTY_HINT_NODE_TYPE, "HealthStatus");
|
|
BIND_PROPERTY(Variant::FLOAT, damage_modifier);
|
|
}
|
|
|
|
void Hitbox::set_health(HealthStatus *value) {
|
|
this->health = value;
|
|
}
|
|
|
|
HealthStatus *Hitbox::get_health() const {
|
|
return this->health;
|
|
}
|
|
|
|
void Hitbox::set_damage_modifier(float value) {
|
|
this->damage_modifier = value;
|
|
}
|
|
|
|
float Hitbox::get_damage_modifier() const {
|
|
return this->damage_modifier;
|
|
}
|