| 662 | } |
| 663 | |
| 664 | void Host::EnsureClient() |
| 665 | { |
| 666 | if( client_ != nullptr ) |
| 667 | return; |
| 668 | |
| 669 | Log::Info( "Create client" ); |
| 670 | |
| 671 | const DrawLoadingCallback draw_loading_callback= |
| 672 | std::bind( &Host::DrawLoadingFrame, this, std::placeholders::_1, std::placeholders::_2 ); |
| 673 | |
| 674 | client_.reset( |
| 675 | new Client( |
| 676 | settings_, |
| 677 | commands_processor_, |
| 678 | game_resources_, |
| 679 | map_loader_, |
| 680 | *drawers_factory_, |
| 681 | shared_drawers_, |
| 682 | sound_engine_, |
| 683 | draw_loading_callback ) ); |
| 684 | } |
| 685 | |
| 686 | void Host::EnsureServer() |
| 687 | { |
nothing calls this directly
no outgoing calls
no test coverage detected