YouDunIt/modules/you_done_it/photo_inbox.h

23 lines
546 B
C++

#pragma once
#include "scene/2d/node_2d.h"
#include "scene/resources/packed_scene.h"
#include "you_done_it/ydi_networking.h"
class PhotoInbox : public Node2D {
GDCLASS(PhotoInbox, Node2D);
static void _bind_methods();
void enter_tree();
void on_clue_revealed(NetworkData::ClueID id);
private:
virtual void unhandled_input(Ref<InputEvent> const &event) override;
void _notification(int what);
public:
void set_photo_scene(Ref<PackedScene> scene);
Ref<PackedScene> get_photo_scene() const;
private:
Ref<PackedScene> photo_scene{};
};