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

Method EnsureClient

PanzerChasm/host.cpp:664–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664void 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
686void Host::EnsureServer()
687{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected