game/shared/econ/econ_item_schema.cpp
void CEconItemDefinition::BInitStylesBlockFromKV( KeyValues *pKVStyles, CEconItemSchema &pschema, AssetInfo *pVisData, CUtlVector<CUtlString> *pVecErrors )
{
	FOR_EACH_SUBKEY( pKVStyles, pKVStyle )
	{
		CEconStyleInfo *pStyleInfo = pschema.CreateEconStyleInfo();
		Assert( pStyleInfo );

		pStyleInfo->BInitFromKV( pKVStyle, pschema, pVecErrors );

		pVisData->m_Styles.AddToTail( pStyleInfo );
	}
}
//-----------------------------------------------------------------------------
// Purpose: Parse the styles sub-section of the visuals block.
//-----------------------------------------------------------------------------
Parse the styles sub-section of the visuals block.
Parse the styles sub - section of the visuals block .
void CEconItemDefinition::BInitStylesBlockFromKV( KeyValues *pKVStyles, CEconItemSchema &pschema, AssetInfo *pVisData, CUtlVector<CUtlString> *pVecErrors )
{
	FOR_EACH_SUBKEY( pKVStyles, pKVStyle )
	{
		CEconStyleInfo *pStyleInfo = pschema.CreateEconStyleInfo();
		Assert( pStyleInfo );
		pStyleInfo->BInitFromKV( pKVStyle, pschema, pVecErrors );
		pVisData->m_Styles.AddToTail( pStyleInfo );
	}
}
void CEconItemDefinition :: BInitStylesBlockFromKV ( KeyValues * pKVStyles , CEconItemSchema & pschema , AssetInfo * pVisData , CUtlVector < CUtlString > * pVecErrors ) { FOR_EACH_SUBKEY ( pKVStyles , pKVStyle ) { CEconStyleInfo * pStyleInfo = pschema . CreateEconStyleInfo ( ) ; Assert ( pStyleInfo ) ; pStyleInfo -> BInitFromKV ( pKVStyle , pschema , pVecErrors ) ; pVisData -> m_Styles . AddToTail ( pStyleInfo ) ; } }
Purpose: Parse the styles sub-section of the visuals block.
Purpose : Parse the styles sub - section of the visuals block .