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.

42 lines
1.2 KiB

  1. //========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Exposes client-server neutral interfaces implemented in both places
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef SHAREDINTERFACE_H
  8. #define SHAREDINTERFACE_H
  9. #ifdef POSIX
  10. #define random random_valve// stdlib.h defined random() and our class defn conflicts so under POSIX rename it using the preprocessor
  11. #endif
  12. class IFileSystem;
  13. class IUniformRandomStream;
  14. class CGaussianRandomStream;
  15. class IEngineSound;
  16. class IMapData;
  17. class IGameTypes;
  18. extern IFileSystem *filesystem;
  19. #if defined(_STATIC_LINKED) && defined(_SUBSYSTEM) && (defined(CLIENT_DLL) || defined(GAME_DLL))
  20. namespace _SUBSYSTEM
  21. {
  22. extern IUniformRandomStream *random;
  23. }
  24. #else
  25. extern IUniformRandomStream *random;
  26. #endif
  27. extern CGaussianRandomStream *randomgaussian;
  28. extern IEngineSound *enginesound;
  29. extern IMapData *g_pMapData; // TODO: current implementations of the
  30. // interface are in TF2, should probably move
  31. // to TF2/HL2 neutral territory
  32. #if defined( CSTRIKE15 )
  33. extern IGameTypes *g_pGameTypes;
  34. #endif
  35. #endif // SHAREDINTERFACE_H