fix: client node binds get_singleton to gdscript

This commit is contained in:
Sara Gerretsen 2025-11-05 11:03:06 +01:00
parent 4c153a47e1
commit 3062d1ce76

View file

@ -11,6 +11,7 @@ String const ClientNode::sig_conclusion_received{ "conclusion_received" };
void ClientNode::_bind_methods() {
ClassDB::bind_method(D_METHOD("connect_to_server", "server_url"), &self_type::connect_to_server);
ClassDB::bind_static_method(self_type::get_class_static(), "get_singleton", &self_type::get_singleton);
ADD_SIGNAL(MethodInfo(sig_connection_changed, PropertyInfo(Variant::INT, "connected", PROPERTY_HINT_ENUM, "Disconnected,Connected,Authenticated")));
ADD_SIGNAL(MethodInfo(sig_conclusion_received,