Team Fortress 2 Source Code as on 22/4/2020
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.

42 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "studio.h"
  8. #include "engine/ivmodelinfo.h"
  9. #include "utlsymbol.h"
  10. // memdbgon must be the last include file in a .cpp file!!!
  11. #include "tier0/memdbgon.h"
  12. ////////////////////////////////////////////////////////////////////////
  13. const studiohdr_t *studiohdr_t::FindModel( void **cache, char const *modelname ) const
  14. {
  15. return modelinfo->FindModel( this, cache, modelname );
  16. }
  17. virtualmodel_t *studiohdr_t::GetVirtualModel( void ) const
  18. {
  19. if ( numincludemodels == 0 )
  20. return NULL;
  21. return modelinfo->GetVirtualModel( this );
  22. }
  23. const studiohdr_t *virtualgroup_t::GetStudioHdr( ) const
  24. {
  25. return modelinfo->FindModel( this->cache );
  26. }
  27. byte *studiohdr_t::GetAnimBlock( int iBlock ) const
  28. {
  29. return modelinfo->GetAnimBlock( this, iBlock );
  30. }
  31. int studiohdr_t::GetAutoplayList( unsigned short **pOut ) const
  32. {
  33. return modelinfo->GetAutoplayList( this, pOut );
  34. }