feat: started work on pinboard mechanics
This commit is contained in:
parent
7e5a39fc52
commit
ac70e60dc2
4 changed files with 56 additions and 0 deletions
14
modules/you_done_it/pinboard.cpp
Normal file
14
modules/you_done_it/pinboard.cpp
Normal 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) }) {
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue