diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf/c_func_passtime_goal.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
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 |