From b75c0006d69a368165343cfcef3f3c5ca34b0112 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 21 Mar 2024 22:50:35 +0100 Subject: [PATCH] feat: switched signal binding in GameRoot to GDSIGNAL --- game_root.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game_root.cpp b/game_root.cpp index 0e66495..f00134b 100644 --- a/game_root.cpp +++ b/game_root.cpp @@ -19,8 +19,8 @@ namespace godot { void GameRoot::_bind_methods() { #define CLASSNAME GameRoot GDFUNCTION(reset_game_mode); - ClassDB::add_signal("GameRoot", MethodInfo("player_connected", PropertyInfo(Variant::OBJECT, "player_input", PROPERTY_HINT_NODE_TYPE, "PlayerInput"))); - ClassDB::add_signal("GameRoot", MethodInfo("player_disconnected", PropertyInfo(Variant::OBJECT, "player_input", PROPERTY_HINT_NODE_TYPE, "PlayerInput"))); + GDSIGNAL("player_connected", PropertyInfo(Variant::OBJECT, "player_input", PROPERTY_HINT_NODE_TYPE, "PlayerInput")); + GDSIGNAL("player_disconnected", PropertyInfo(Variant::OBJECT, "player_input", PROPERTY_HINT_NODE_TYPE, "PlayerInput")); } GameRoot *GameRoot::get_singleton() {