#include "projectile.hpp" #include "projectile_pool.hpp" #include namespace godot { void Projectile::_bind_methods() { #define CLASSNAME Projectile } void Projectile::return_to_pool() { if(!this->pool) return; this->pool->return_projectile(this); } void Projectile::set_weapon_data(Ref data) { this->data = data; } void Projectile::set_projectile_pool(ProjectilePool *pool) { this->pool = pool; } }