diff options
Diffstat (limited to 'game/client/tf/c_func_passtime_goal.h')
| -rw-r--r-- | game/client/tf/c_func_passtime_goal.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/game/client/tf/c_func_passtime_goal.h b/game/client/tf/c_func_passtime_goal.h new file mode 100644 index 0000000..9f9c3ca --- /dev/null +++ b/game/client/tf/c_func_passtime_goal.h @@ -0,0 +1,39 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +// func_passtime_goal - based on func_capture_zone +#ifndef C_FUNC_PASSTIME_GOAL_H +#define C_FUNC_PASSTIME_GOAL_H +#ifdef _WIN32 +#pragma once +#endif + +#include "util_shared.h" +#include "c_baseentity.h" + +//----------------------------------------------------------------------------- +class C_FuncPasstimeGoal : public C_BaseEntity, public TAutoList<C_FuncPasstimeGoal> +{ +public: + DECLARE_CLASS( C_FuncPasstimeGoal, C_BaseEntity ); + DECLARE_CLIENTCLASS(); + bool BGoalTriggerDisabled() const { return m_bTriggerDisabled; } + int GetGoalType() const { return m_iGoalType; } + + enum GoalType + { + TYPE_HOOP, + TYPE_ENDZONE, + TYPE_TOWER, + }; + +private: + CNetworkVar( bool, m_bTriggerDisabled ); + CNetworkVar( int, m_iGoalType ); +}; + +#endif // C_FUNC_PASSTIME_GOAL_H |