feat: full flow from startup to gameplay & clues sending
This commit is contained in:
parent
c765f7daf9
commit
261694773f
9 changed files with 213 additions and 12 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include "client_node.h"
|
||||
#include "core/config/engine.h"
|
||||
#include "scene/main/node.h"
|
||||
#include "you_done_it/clue_data.h"
|
||||
#include "you_done_it/clue_db.h"
|
||||
#include "you_done_it/ydi_client.h"
|
||||
|
|
@ -54,6 +55,19 @@ void ClientNode::_notification(int what) {
|
|||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
return;
|
||||
}
|
||||
switch (what) {
|
||||
default:
|
||||
return;
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
set_process(true);
|
||||
return;
|
||||
case NOTIFICATION_PROCESS:
|
||||
process();
|
||||
return;
|
||||
case NOTIFICATION_EXIT_TREE:
|
||||
exit_tree();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
ClientNode *ClientNode::get_singleton() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue