feat: ServerNode no longer opens server on enter()
This commit is contained in:
parent
7a5f9d6691
commit
cfb901ec46
2 changed files with 7 additions and 1 deletions
|
|
@ -11,6 +11,8 @@ void ServerNode::_bind_methods() {
|
|||
ADD_SIGNAL(MethodInfo(sig_clue_revealed, PropertyInfo(Variant::INT, "id")));
|
||||
ADD_SIGNAL(MethodInfo(sig_connection_established));
|
||||
ADD_SIGNAL(MethodInfo(sig_connection_lost));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("open"), &self_type::open);
|
||||
}
|
||||
|
||||
void ServerNode::enter_tree() {
|
||||
|
|
@ -19,7 +21,6 @@ void ServerNode::enter_tree() {
|
|||
abort();
|
||||
} else {
|
||||
singleton_instance = this;
|
||||
ydi::server::open();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -67,3 +68,7 @@ void ServerNode::_notification(int what) {
|
|||
ServerNode *ServerNode::get_singleton() {
|
||||
return singleton_instance;
|
||||
}
|
||||
|
||||
void ServerNode::open() {
|
||||
ydi::server::open();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue