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.

24 lines
651 B

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