vphysics_bullet/Physics_KeyParser.cpp
static void RecursiveKeyLoop(KeyValues *pBlock, void *pCustom, IVPhysicsKeyHandler *unknownKeyHandler) {
	for (KeyValues *pKey = pBlock; pKey; pKey = pKey->GetNextKey()) {
		const char *key = pKey->GetName();
		const char *value = pKey->GetString();
		unknownKeyHandler->ParseKeyValue(pCustom, key, value);

		// Recurse
		if (pKey->GetFirstSubKey())
			RecursiveKeyLoop(pKey->GetFirstSubKey(), pCustom, unknownKeyHandler);
	}
}
// Purpose: Recursive function to loop through all the keyvalues!
Recursive function to loop through all the keyvalues!
Recursive function to loop through all the keyvalues!
static void RecursiveKeyLoop(KeyValues *pBlock, void *pCustom, IVPhysicsKeyHandler *unknownKeyHandler) {
	for (KeyValues *pKey = pBlock; pKey; pKey = pKey->GetNextKey()) {
		const char *key = pKey->GetName();
		const char *value = pKey->GetString();
		unknownKeyHandler->ParseKeyValue(pCustom, key, value);
		if (pKey->GetFirstSubKey())
			RecursiveKeyLoop(pKey->GetFirstSubKey(), pCustom, unknownKeyHandler);
	}
}
static void RecursiveKeyLoop ( KeyValues * pBlock , void * pCustom , IVPhysicsKeyHandler * unknownKeyHandler ) { for ( KeyValues * pKey = pBlock ; pKey ; pKey = pKey -> GetNextKey ( ) ) { const char * key = pKey -> GetName ( ) ; const char * value = pKey -> GetString ( ) ; unknownKeyHandler -> ParseKeyValue ( pCustom , key , value ) ; if ( pKey -> GetFirstSubKey ( ) ) RecursiveKeyLoop ( pKey -> GetFirstSubKey ( ) , pCustom , unknownKeyHandler ) ; } }
Purpose: Recursive function to loop through all the keyvalues!
Purpose : Recursive function to loop through all the keyvalues!
// Recurse