Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
915 B

  1. //===== Copyright � 1996-2008, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //===========================================================================//
  8. #include "tier2/tier2.h"
  9. #include "resourcefile/schema.h"
  10. #include "resourcesystem/iresourcesystem.h"
  11. // NOTE: This has to be the last file included!
  12. #include "tier0/memdbgon.h"
  13. CSchemaClassBindingBase *CSchemaClassBindingBase::sm_pClassBindingList;
  14. void CSchemaClassBindingBase::Install()
  15. {
  16. for ( CSchemaClassBindingBase *pBinding = sm_pClassBindingList; pBinding; pBinding = pBinding->m_pNextBinding )
  17. {
  18. g_pResourceSystem->InstallSchemaClassBinding( pBinding );
  19. }
  20. }
  21. const CResourceStructIntrospection *CSchemaClassBindingBase::GetIntrospection() const
  22. {
  23. if ( m_pIntrospection == NULL )
  24. {
  25. m_pIntrospection = g_pResourceSystem->FindStructIntrospection( m_pClassName );
  26. }
  27. return m_pIntrospection;
  28. }