本文整理汇总了C++中ConVar::GetHelpText方法的典型用法代码示例。如果您正苦于以下问题:C++ ConVar::GetHelpText方法的具体用法?C++ ConVar::GetHelpText怎么用?C++ ConVar::GetHelpText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConVar
的用法示例。
在下文中一共展示了ConVar::GetHelpText方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CC_BalanceMacroReportCSV
//
// Name: CC_BalanceMacroReport( const CCommand& args )
// Author: Hekar Khani
// Description: ConCommand to display a report of the current balance macros in CSV format
// Notes:
//
void CC_BalanceMacroReportCSV( const CCommand& args )
{
// HODO: add ability to write to file
ConCommandBase *Command = cvar->GetCommands();
for ( ; Command != NULL; Command = Command->GetNext())
{
ConVar *convar = dynamic_cast< ConVar * > ( Command );
if ( !convar )
{
continue;
}
Msg( "Convar, Value, Description\n" );
const char *convarname = convar->GetName();
if ( Q_strstr( convarname, "lfm" ) )
{
Msg( "%s, %s, %s\n", convar->GetName(), convar->GetString(), convar->GetHelpText() );
}
}
}
示例2: CC_BalanceMacroReport
//
// Name: CC_BalanceMacroReport( const CCommand& args )
// Author: Hekar Khani
// Description: ConCommand to display a simple report of the current balance macros
// Notes:
//
void CC_BalanceMacroReport( const CCommand& args )
{
ConCommandBase *Command = cvar->GetCommands();
for ( ; Command != NULL; Command = Command->GetNext())
{
ConVar *convar = dynamic_cast< ConVar * > ( Command );
if ( !convar )
{
continue;
}
const char *convarname = convar->GetName();
if ( Q_strstr( convarname, "lfm" ) )
{
Msg( "Name: %s\t\tValue: %s\t\tDesc: %s\n", convar->GetName(), convar->GetString(), convar->GetHelpText() );
}
}
}