| 684 | } |
| 685 | |
| 686 | void Host::EnsureServer() |
| 687 | { |
| 688 | if( local_server_ != nullptr ) |
| 689 | return; |
| 690 | |
| 691 | Log::Info( "Create local server" ); |
| 692 | |
| 693 | const DrawLoadingCallback draw_loading_callback= |
| 694 | std::bind( &Host::DrawLoadingFrame, this, std::placeholders::_1, std::placeholders::_2 ); |
| 695 | |
| 696 | PC_ASSERT( connections_listener_proxy_ == nullptr ); |
| 697 | connections_listener_proxy_= std::make_shared<ConnectionsListenerProxy>(); |
| 698 | |
| 699 | local_server_.reset( |
| 700 | new Server( |
| 701 | commands_processor_, |
| 702 | game_resources_, |
| 703 | map_loader_, |
| 704 | connections_listener_proxy_, |
| 705 | draw_loading_callback ) ); |
| 706 | } |
| 707 | |
| 708 | void Host::EnsureLoopbackBuffer() |
| 709 | { |
nothing calls this directly
no outgoing calls
no test coverage detected