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.

25 lines
649 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "cbase.h"
  8. #include "functionproxy.h"
  9. #include "imaterialproxydict.h"
  10. // memdbgon must be the last include file in a .cpp file!!!
  11. #include "tier0/memdbgon.h"
  12. class CTimeMaterialProxy : public CResultProxy
  13. {
  14. public:
  15. virtual void OnBind( void *pC_BaseEntity );
  16. };
  17. void CTimeMaterialProxy::OnBind( void *pC_BaseEntity )
  18. {
  19. SetFloatResult( gpGlobals->curtime );
  20. }
  21. EXPOSE_MATERIAL_PROXY( CTimeMaterialProxy, CurrentTime );