#include "pinboard.h" #include "pinned_photo.h" void Pinboard::_bind_methods() { } void Pinboard::enter_tree() { connect("body_entered", callable_mp(this, &self_type::on_body_entered)); } void Pinboard::on_body_entered(Node2D *node) { if (PinnedPhoto * photo{ cast_to(node) }) { } }