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.

40 lines
1023 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ENTITY_PASSTIME_BALL_SPAWN_H
  8. #define ENTITY_PASSTIME_BALL_SPAWN_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "baseentity.h"
  13. #include "util_shared.h"
  14. //-----------------------------------------------------------------------------
  15. class CTFPasstimeLogic;
  16. DECLARE_AUTO_LIST( IPasstimeBallSpawnAutoList );
  17. //-----------------------------------------------------------------------------
  18. class CPasstimeBallSpawn : public CPointEntity, public IPasstimeBallSpawnAutoList
  19. {
  20. public:
  21. DECLARE_CLASS( CPasstimeBallSpawn, CPointEntity );
  22. DECLARE_DATADESC();
  23. CPasstimeBallSpawn();
  24. bool IsEnabled() const;
  25. private:
  26. friend class CTFPasstimeLogic;
  27. void InputEnable( inputdata_t &input );
  28. void InputDisable( inputdata_t &input );
  29. COutputEvent m_onSpawnBall;
  30. bool m_bDisabled;
  31. };
  32. #endif // ENTITY_PASSTIME_BALL_SPAWN_H