本文整理汇总了C++中KeyValues::SetUint64方法的典型用法代码示例。如果您正苦于以下问题:C++ KeyValues::SetUint64方法的具体用法?C++ KeyValues::SetUint64怎么用?C++ KeyValues::SetUint64使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KeyValues
的用法示例。
在下文中一共展示了KeyValues::SetUint64方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnOpen
//=============================================================================
void MainMenu::OnOpen()
{
if ( IsPC() && connect_lobby.GetString()[0] )
{
// if we were launched with "+connect_lobby <lobbyid>" on the command line, join that lobby immediately
uint64 nLobbyID = _atoi64( connect_lobby.GetString() );
if ( nLobbyID != 0 )
{
KeyValues *pSettings = KeyValues::FromString(
"settings",
" system { "
" network LIVE "
" } "
" options { "
" action joinsession "
" } "
);
pSettings->SetUint64( "options/sessionid", nLobbyID );
KeyValues::AutoDelete autodelete( pSettings );
g_pMatchFramework->MatchSession( pSettings );
}
// clear the convar so we don't try to join that lobby every time we return to the main menu
connect_lobby.SetValue( "" );
}
BaseClass::OnOpen();
SetFooterState();
#ifndef _X360
bool bSteamCloudVisible = false;
{
static CGameUIConVarRef cl_cloud_settings( "cl_cloud_settings" );
if ( cl_cloud_settings.GetInt() == -1 )
{
CBaseModPanel::GetSingleton().OpenWindow( WT_STEAMCLOUDCONFIRM, this, false );
bSteamCloudVisible = true;
}
}
if ( !bSteamCloudVisible )
{
if ( AddonAssociation::CheckAndSeeIfShouldShow() )
{
CBaseModPanel::GetSingleton().OpenWindow( WT_ADDONASSOCIATION, this, false );
}
}
#endif
}