Example #1
0
CFeatureTestMgr::CFeatureTestMgr()
:	m_runningTestIndex(),
	m_pRunningTest(),
	m_pAutoTester(),
	m_running(),
	m_pendingRunAll(),
	m_pendingQuickload(),
	m_pendingLevelReload(),
	m_hasQuickloaded(),
	m_timeWaitedForScheduled(0.0f),
	m_waiting(false),
	m_timeoutScheduled(0.0f)
{
	IConsole* pConsole = GetISystem()->GetIConsole();

	if (pConsole)
	{
		pConsole->AddCommand("ft_map_runAll", CmdMapRunAll, VF_CHEAT, "FEATURE TESTER: Run all enabled map feature tests");
		pConsole->AddCommand("ft_map_forceRun", CmdMapForceRun, VF_CHEAT, "FEATURE TESTER: Force run of the provided test (even if it's not ready)");
		pConsole->RegisterAutoComplete("ft_map_forceRun", &s_featureTestMgrArgumentAutoComplete);
	}
}