MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / EnsureServer

Method EnsureServer

PanzerChasm/host.cpp:686–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684}
685
686void 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
708void Host::EnsureLoopbackBuffer()
709{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected