game/shared/econ/econ_item_schema.cpp
bool CEconItemSchema::BInitTimedRewards( KeyValues *pKVTimedRewards, CUtlVector<CUtlString> *pVecErrors )
{
	m_vecTimedRewards.Purge();

	// initialize the rewards sections
	if ( NULL != pKVTimedRewards )
	{
		FOR_EACH_TRUE_SUBKEY( pKVTimedRewards, pKVTimedReward )
		{
			int index = m_vecTimedRewards.AddToTail();
			SCHEMA_INIT_SUBSTEP( m_vecTimedRewards[index].BInitFromKV( pKVTimedReward, *this, pVecErrors ) );
		}
	}

	return SCHEMA_INIT_SUCCESS();
}
//-----------------------------------------------------------------------------
// Purpose:	Initializes the timed rewards section of the schema
// Input:	pKVTimedRewards - The timed_rewards section of the KeyValues 
//				representation of the schema
//			pVecErrors - An optional vector that will contain error messages if 
//				the init fails.
// Output:	True if initialization succeeded, false otherwise
//-----------------------------------------------------------------------------
Initializes the timed rewards section of the schema
Input: pKVTimedRewards - The timed_rewards section of the KeyValues
representation of the schema
pVecErrors - An optional vector that will contain error messages if
the init fails.
Output:        True if initialization succeeded, false otherwise
Initializes the timed rewards section of the schema Input : pKVTimedRewards - The timed_rewards section of the KeyValues representation of the schema pVecErrors - An optional vector that will contain error messages if the init fails . Output : True if initialization succeeded false otherwise
bool CEconItemSchema::BInitTimedRewards( KeyValues *pKVTimedRewards, CUtlVector<CUtlString> *pVecErrors )
{
	m_vecTimedRewards.Purge();
	if ( NULL != pKVTimedRewards )
	{
		FOR_EACH_TRUE_SUBKEY( pKVTimedRewards, pKVTimedReward )
		{
			int index = m_vecTimedRewards.AddToTail();
			SCHEMA_INIT_SUBSTEP( m_vecTimedRewards[index].BInitFromKV( pKVTimedReward, *this, pVecErrors ) );
		}
	}
	return SCHEMA_INIT_SUCCESS();
}
bool CEconItemSchema :: BInitTimedRewards ( KeyValues * pKVTimedRewards , CUtlVector < CUtlString > * pVecErrors ) { m_vecTimedRewards . Purge ( ) ; if ( NULL != pKVTimedRewards ) { FOR_EACH_TRUE_SUBKEY ( pKVTimedRewards , pKVTimedReward ) { int index = m_vecTimedRewards . AddToTail ( ) ; SCHEMA_INIT_SUBSTEP ( m_vecTimedRewards [ index ] . BInitFromKV ( pKVTimedReward , * this , pVecErrors ) ) ; } } return SCHEMA_INIT_SUCCESS ( ) ; }
Purpose:       Initializes the timed rewards section of the schema
Input: pKVTimedRewards - The timed_rewards section of the KeyValues
representation of the schema
pVecErrors - An optional vector that will contain error messages if
the init fails.
Purpose : Initializes the timed rewards section of the schema Input : pKVTimedRewards - The timed_rewards section of the KeyValues representation of the schema pVecErrors - An optional vector that will contain error messages if the init fails .
// initialize the rewards sections