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

Method NewGameCommand

PanzerChasm/host.cpp:406–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406void Host::NewGameCommand( const CommandsArguments& args )
407{
408 DifficultyType difficulty= Difficulty::Normal;
409 if( args.size() >= 1u )
410 difficulty= DifficultyNumberToDifficulty( std::atoi( args[0].c_str() ) );
411
412 NewGame( difficulty );
413}
414
415void Host::RunLevelCommand( const CommandsArguments& args )
416{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected