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.

74 lines
2.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #ifndef REPLAYDLL_H
  5. #define REPLAYDLL_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. //----------------------------------------------------------------------------------------
  10. #include "replay/ireplaysystem.h"
  11. #include "replay/ienginereplay.h"
  12. #include "replay/iclientreplay.h"
  13. #include "replay/iserverreplay.h"
  14. #include "replay/ireplaydemoplayer.h"
  15. #include "replay/ireplayserver.h"
  16. #include "igameevents.h"
  17. #include "engine/IEngineTrace.h"
  18. #include "engine/idownloadsystem.h"
  19. #include "icliententitylist.h"
  20. #if !defined( DEDICATED )
  21. #include "cl_replaycontext.h"
  22. #include "engine/ivdebugoverlay.h"
  23. #endif
  24. #include "vgui/ILocalize.h"
  25. #include "sv_replaycontext.h"
  26. #include "convar.h"
  27. //----------------------------------------------------------------------------------------
  28. extern IReplaySystem *g_pReplay;
  29. extern IClientReplay *g_pClient;
  30. extern IServerReplay *g_pServer;
  31. extern IGameEventManager2 *g_pGameEventManager;
  32. extern IEngineTrace *g_pEngineTraceClient;
  33. extern IReplayDemoPlayer *g_pReplayDemoPlayer;
  34. extern IEngineReplay *g_pEngine;
  35. extern vgui::ILocalize *g_pVGuiLocalize;
  36. #if !defined( DEDICATED )
  37. extern IEngineClientReplay *g_pEngineClient;
  38. extern IVDebugOverlay *g_pDebugOverlay;
  39. extern IDownloadSystem *g_pDownloadSystem;
  40. #endif
  41. //----------------------------------------------------------------------------------------
  42. inline IReplayServer *ReplayServer()
  43. {
  44. return g_pEngine->GetReplayServer();
  45. }
  46. inline IServer *ReplayServerAsIServer()
  47. {
  48. return g_pEngine->GetReplayServerAsIServer();
  49. }
  50. //----------------------------------------------------------------------------------------
  51. void Replay_MsgBox( const char *pText ); // Display a message box
  52. void Replay_MsgBox( const wchar_t *pText );
  53. const char *Replay_GetBaseDir(); // Returns the replays base dir - eg, "/home/user/<...>/replays/"
  54. const char *Replay_GetDownloadURLPath();
  55. const char *Replay_GetDownloadURL();
  56. void Replay_CrackURL( const char *pURL, char *pBaseURLOut, char *pURLPathOut );
  57. #ifndef DEDICATED
  58. void Replay_HudMsg( const char *pText, const char *pSound = NULL, bool bUrgent = false );
  59. #endif
  60. //----------------------------------------------------------------------------------------
  61. #endif // REPLAYDLL_H