//===== Copyright © 2005-2005, Valve Corporation, All rights reserved. ======// // // Purpose: A higher level link library for general use in the game and tools. // //===========================================================================// #include #include "resourceprecacher.h" #include "datacache/iprecachesystem.h" CBaseResourcePrecacher *CBaseResourcePrecacher::sm_pFirst[PRECACHE_SYSTEM_COUNT] = { 0 }; //----------------------------------------------------------------------------- // Registers all resource precachers (created by PRECACHE_ macros) with precache system //----------------------------------------------------------------------------- void CBaseResourcePrecacher::RegisterAll() { for ( int iSystem = 0; iSystem < PRECACHE_SYSTEM_COUNT; iSystem++ ) { g_pPrecacheSystem->Register( sm_pFirst[iSystem], (PrecacheSystem_t) iSystem ); } }