feat: switched signal binding in GameRoot to GDSIGNAL
parent
af4208f3b7
commit
b75c0006d6
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue