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.

78 lines
2.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //----------------------------------------------------------------------------------------
  4. #ifndef GAMEDEFS_H
  5. #define GAMEDEFS_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. #if defined( TF_CLIENT_DLL )
  10. # include "tf_gamestats_shared.h"
  11. # define REPLAY_GAMESTATS_UNDEFINED TFSTAT_UNDEFINED
  12. # define REPLAY_GAMESTATS_REVENGE TFSTAT_REVENGE
  13. # define REPLAY_GAMESTATS_DEATHS TFSTAT_DEATHS
  14. # define REPLAY_GAMESTATS_DOMINATIONS TFSTAT_DOMINATIONS
  15. # define REPLAY_GAMESTATS_POINTSSCORED TFSTAT_POINTSSCORED
  16. # define REPLAY_GAMESTATS_MAX TFSTAT_TOTAL
  17. # define REPLAY_TEAM_TEAM0 TF_TEAM_RED
  18. # define REPLAY_TEAM_TEAM1 TF_TEAM_BLUE
  19. # define REPLAY_CLASS_UNDEFINED TF_CLASS_UNDEFINED
  20. # define REPLAY_NUM_CLASSES TF_CLASS_MENU_BUTTONS
  21. # define REPLAY_DEATH_DOMINATION TF_DEATH_DOMINATION
  22. # define REPLAY_DEATH_ASSISTER_DOMINATION TF_DEATH_ASSISTER_DOMINATION
  23. # define REPLAY_DEATH_REVENGE TF_DEATH_REVENGE
  24. # define REPLAY_DEATH_ASSISTER_REVENGE TF_DEATH_ASSISTER_REVENGE
  25. # define C_ReplayGame_PlayerResource
  26. # include "c_tf_playerresource.h"
  27. typedef C_TF_PlayerResource C_ReplayGame_PlayerResource_t;
  28. # define ReplayStatType_t TFStatType_t
  29. # define REPLAY_MAX_DISPLAY_GAMESTATS 23
  30. #elif defined( CSTRIKE_DLL )
  31. # include "cs_gamestats_shared.h"
  32. # define REPLAY_GAMESTATS_UNDEFINED CSSTAT_UNDEFINED
  33. # define REPLAY_GAMESTATS_REVENGE CSSTAT_REVENGES
  34. # define REPLAY_GAMESTATS_DEATHS CSSTAT_DEATHS
  35. # define REPLAY_GAMESTATS_DOMINATIONS CSSTAT_DOMINATIONS
  36. # define REPLAY_GAMESTATS_POINTSSCORED CSSTAT_UNDEFINED // Sheeeeeeeeeit
  37. # define REPLAY_GAMESTATS_MAX CSSTAT_MAX
  38. # define REPLAY_TEAM_TEAM0 TEAM_TERRORIST
  39. # define REPLAY_TEAM_TEAM1 TEAM_CT
  40. # define REPLAY_CLASS_UNDEFINED CS_CLASS_NONE
  41. # define REPLAY_NUM_CLASSES CS_NUM_CLASSES
  42. # define REPLAY_DEATH_DOMINATION CS_DEATH_DOMINATION
  43. # define REPLAY_DEATH_REVENGE CS_DEATH_REVENGE
  44. # include "c_cs_playerresource.h"
  45. typedef C_CS_PlayerResource C_ReplayGame_PlayerResource_t;
  46. # define ReplayStatType_t CSStatType_t
  47. # define RoundStats_t StatsCollection_t
  48. # define REPLAY_MAX_DISPLAY_GAMESTATS 3
  49. #endif
  50. struct StatInfo_t
  51. {
  52. ReplayStatType_t m_nStat;
  53. const char *m_pStatLocalizationToken;
  54. };
  55. extern StatInfo_t g_pReplayDisplayGameStats[REPLAY_MAX_DISPLAY_GAMESTATS];
  56. #endif // GAMEDEFS_H