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

Method ClearBeforeGameStart

PanzerChasm/host.cpp:726–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726void Host::ClearBeforeGameStart()
727{
728 if( system_window_ != nullptr )
729 system_window_->SetTitle( base_window_title_ );
730
731 if( client_ != nullptr )
732 client_->SetConnection( nullptr );
733
734 if( local_server_ != nullptr )
735 {
736 local_server_->DisconnectAllClients();
737 local_server_->StopMap();
738 }
739
740 if( connections_listener_proxy_ != nullptr )
741 connections_listener_proxy_->ClearConnectionsListeners();
742
743 if( loopback_buffer_ != nullptr )
744 loopback_buffer_->RequestDisconnect();
745
746 // Force close menu before game start.
747 if( menu_ != nullptr )
748 menu_->Deactivate();
749
750 is_single_player_= false;
751 paused_= false;
752}
753
754} // namespace PanzerChasm

Callers

nothing calls this directly

Calls 7

SetTitleMethod · 0.80
SetConnectionMethod · 0.80
DisconnectAllClientsMethod · 0.80
RequestDisconnectMethod · 0.80
DeactivateMethod · 0.80
StopMapMethod · 0.45

Tested by

no test coverage detected