24 lines
504 B
C++
24 lines
504 B
C++
#pragma once
|
|
|
|
#include "scene/3d/marker_3d.h"
|
|
#include "you_done_it/clue_db.h"
|
|
#include "you_done_it/ydi_networking.h"
|
|
|
|
class ClueMarker : public Marker3D {
|
|
GDCLASS(ClueMarker, Marker3D);
|
|
static void _bind_methods();
|
|
void enter_tree();
|
|
void exit_tree();
|
|
|
|
protected:
|
|
void _notification(int what);
|
|
|
|
public:
|
|
float score_in_view() const;
|
|
void reveal();
|
|
void set_clue_id(NetworkData::ClueID id);
|
|
NetworkData::ClueID get_clue_id() const;
|
|
|
|
private:
|
|
NetworkData::ClueID id{ NetworkData::CLUE_MAX };
|
|
};
|