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

Method RunLevelCommand

PanzerChasm/host.cpp:415–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415void Host::RunLevelCommand( const CommandsArguments& args )
416{
417 if( args.empty() )
418 {
419 Log::Info( "Expected map number" );
420 return;
421 }
422
423 unsigned int map_number= std::atoi( args.front().c_str() );
424
425 DifficultyType difficulty= Difficulty::Normal;
426 if( args.size() >= 2u )
427 difficulty= DifficultyNumberToDifficulty( std::atoi( args[1].c_str() ) );
428
429 DoRunLevel( map_number, difficulty );
430}
431
432void Host::ConnectCommand( const CommandsArguments& args )
433{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected