本文整理汇总了C++中CGlobalState类的典型用法代码示例。如果您正苦于以下问题:C++ CGlobalState类的具体用法?C++ CGlobalState怎么用?C++ CGlobalState使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CGlobalState类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RestoreGlobalState
void RestoreGlobalState( SAVERESTOREDATA *pSaveData )
{
CRestore restoreHelper( pSaveData );
gGlobalState.Restore( restoreHelper );
}
示例2: ResetGlobalState
void ResetGlobalState( void )
{
gGlobalState.ClearStates();
gInitHUD = TRUE; // Init the HUD on a new game / load game
g_iPlayersPerTeam = 0;
}
示例3: ResetGlobalState
void ResetGlobalState( void )
{
gGlobalState.ClearStates();
gInitHUD = TRUE; // Init the HUD on a new game / load game
}
示例4: SaveGlobalState
void SaveGlobalState( SAVERESTOREDATA *pSaveData )
{
CSave saveHelper( pSaveData );
gGlobalState.Save( saveHelper );
}
示例5:
const char *GlobalEntity_GetName( int globalIndex )
{
return gGlobalState.GetName( globalIndex );
}
示例6: GlobalEntity_GetNumGlobals
int GlobalEntity_GetNumGlobals( void )
{
return gGlobalState.GetNumGlobals();
}
示例7: GlobalEntity_GetIndex
int GlobalEntity_GetIndex( const char *pGlobalname )
{
return gGlobalState.GetIndex( pGlobalname );
}
示例8: GlobalEntity_GetState
GLOBALESTATE GlobalEntity_GetState( int globalIndex )
{
return gGlobalState.GetState( globalIndex );
}
示例9: GlobalEntity_SetMap
void GlobalEntity_SetMap( int globalIndex, string_t mapname )
{
gGlobalState.SetMap( globalIndex, mapname );
}
示例10: GlobalEntity_Add
int GlobalEntity_Add( const char *pGlobalname, const char *pMapName, GLOBALESTATE state )
{
return gGlobalState.AddEntity( pGlobalname, pMapName, state );
}
示例11: GlobalEntity_EnableStateUpdates
void GlobalEntity_EnableStateUpdates( bool bEnable )
{
gGlobalState.EnableStateUpdates( bEnable );
}
示例12: GlobalEntity_SetState
void GlobalEntity_SetState( int globalIndex, GLOBALESTATE state )
{
gGlobalState.SetState( globalIndex, state );
}
示例13: GlobalEntity_GetCounter
int GlobalEntity_GetCounter( int globalIndex )
{
return gGlobalState.GetCounter( globalIndex );
}
示例14: GlobalEntity_AddToCounter
int GlobalEntity_AddToCounter( int globalIndex, int delta )
{
return gGlobalState.AddToCounter( globalIndex, delta );
}
示例15: GlobalEntity_SetCounter
void GlobalEntity_SetCounter( int globalIndex, int counter )
{
gGlobalState.SetCounter( globalIndex, counter );
}