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.

45 lines
877 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: CTeamplayRoundWin Entity
  4. //
  5. //=============================================================================//
  6. #ifndef ENTITY_ROUND_WIN_H
  7. #define ENTITY_ROUND_WIN_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. //=============================================================================
  12. //
  13. // CTeamplayRoundWin Entity.
  14. //
  15. class CTeamplayRoundWin : public CPointEntity
  16. {
  17. public:
  18. DECLARE_CLASS( CTeamplayRoundWin, CPointEntity );
  19. CTeamplayRoundWin();
  20. // Input
  21. void InputRoundWin( inputdata_t &inputdata );
  22. private:
  23. void RoundWin( void );
  24. private:
  25. bool m_bForceMapReset;
  26. bool m_bSwitchTeamsOnWin;
  27. int m_iWinReason;
  28. COutputEvent m_outputOnRoundWin; // Fired when the entity tells the game rules a team has won the round
  29. DECLARE_DATADESC();
  30. };
  31. #endif // ENTITY_ROUND_WIN_H