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.

33 lines
653 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef HOST_PHONEHOME_H
  7. #define HOST_PHONEHOME_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. abstract_class IPhoneHome
  12. {
  13. public:
  14. enum
  15. {
  16. PHONE_MSG_UNKNOWN = 0,
  17. PHONE_MSG_ENGINESTART,
  18. PHONE_MSG_ENGINEEND,
  19. PHONE_MSG_MAPSTART,
  20. PHONE_MSG_MAPEND
  21. };
  22. virtual void Init( void ) = 0;
  23. virtual void Shutdown() = 0;
  24. virtual void Message( byte msgtype, char const *mapname ) = 0;
  25. virtual bool IsExternalBuild() = 0;
  26. };
  27. extern IPhoneHome *phonehome;
  28. #endif // HOST_PHONEHOME_H