feat: switched signal binding in GameRoot to GDSIGNAL
This commit is contained in:
		
							parent
							
								
									af4208f3b7
								
							
						
					
					
						commit
						b75c0006d6
					
				| 
						 | 
				
			
			@ -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() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue