feat: started work on pinboard mechanics

This commit is contained in:
Sara Gerretsen 2025-10-29 23:14:11 +01:00
parent 7e5a39fc52
commit ac70e60dc2
4 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#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) }) {
}
}