summaryrefslogtreecommitdiff
path: root/game/client/tf2/c_func_resource.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf2/c_func_resource.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf2/c_func_resource.h')
-rw-r--r--game/client/tf2/c_func_resource.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/game/client/tf2/c_func_resource.h b/game/client/tf2/c_func_resource.h
new file mode 100644
index 0000000..fd22b28
--- /dev/null
+++ b/game/client/tf2/c_func_resource.h
@@ -0,0 +1,57 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Client's CObjectSentrygun
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef C_FUNC_RESOURCE_H
+#define C_FUNC_RESOURCE_H
+
+#include "commanderoverlay.h"
+#include "hud_minimap.h"
+
+
+//-----------------------------------------------------------------------------
+// Purpose: A resource zone
+//-----------------------------------------------------------------------------
+class C_ResourceZone : public C_BaseEntity
+{
+ DECLARE_CLASS( C_ResourceZone, C_BaseEntity );
+public:
+ DECLARE_PREDICTABLE();
+ DECLARE_CLIENTCLASS();
+ DECLARE_ENTITY_PANEL();
+ DECLARE_MINIMAP_PANEL();
+
+ C_ResourceZone();
+ virtual void SetDormant( bool bDormant );
+ virtual void OnDataChanged( DataUpdateType_t updateType );
+ const char *GetTargetDescription( void ) const;
+
+public:
+ float m_flClientResources; // Amount of resources left
+ int m_nResourcesLeft;
+};
+
+//-----------------------------------------------------------------------------
+// Purpose: A resource chunk spawning point in a resource zone
+//-----------------------------------------------------------------------------
+class C_ResourceSpawner : public C_BaseAnimating
+{
+ DECLARE_CLASS( C_ResourceSpawner, C_BaseAnimating );
+public:
+ DECLARE_CLIENTCLASS();
+
+ C_ResourceSpawner();
+ virtual void OnDataChanged( DataUpdateType_t updateType );
+ virtual void ReceiveMessage( int classID, bf_read &msg );
+ virtual void SpawnEffect( bool bSpawningChunk );
+ virtual void ClientThink( void );
+
+public:
+ bool m_bActive;
+};
+
+#endif // C_FUNC_RESOURCE_H
+