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() {