feat: switched signal binding in GameRoot to GDSIGNAL

stripped
Sara 2024-03-21 22:50:35 +01:00
parent af4208f3b7
commit b75c0006d6
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ namespace godot {
void GameRoot::_bind_methods() { void GameRoot::_bind_methods() {
#define CLASSNAME GameRoot #define CLASSNAME GameRoot
GDFUNCTION(reset_game_mode); GDFUNCTION(reset_game_mode);
ClassDB::add_signal("GameRoot", MethodInfo("player_connected", PropertyInfo(Variant::OBJECT, "player_input", PROPERTY_HINT_NODE_TYPE, "PlayerInput"))); GDSIGNAL("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_disconnected", PropertyInfo(Variant::OBJECT, "player_input", PROPERTY_HINT_NODE_TYPE, "PlayerInput"));
} }
GameRoot *GameRoot::get_singleton() { GameRoot *GameRoot::get_singleton() {