YouDunIt/modules/you_done_it/pinboard.cpp

14 lines
302 B
C++

#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<PinnedPhoto>(node) }) {
}
}