aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/client/weapons_resource.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/client/weapons_resource.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/client/weapons_resource.h')
-rw-r--r--sp/src/game/client/weapons_resource.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/sp/src/game/client/weapons_resource.h b/sp/src/game/client/weapons_resource.h
new file mode 100644
index 00000000..90ffaf99
--- /dev/null
+++ b/sp/src/game/client/weapons_resource.h
@@ -0,0 +1,44 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef WEAPONS_RESOURCE_H
+#define WEAPONS_RESOURCE_H
+#pragma once
+
+#include "shareddefs.h"
+#include "weapon_parse.h"
+#include "utldict.h"
+#include "hud.h"
+
+class C_BaseCombatWeapon;
+class CHudTexture;
+
+//-----------------------------------------------------------------------------
+// Purpose: Stores data about the Weapon Definitions passed to the client when
+// the client first connects to a server.
+//-----------------------------------------------------------------------------
+class WeaponsResource
+{
+public:
+ WeaponsResource( void );
+ ~WeaponsResource( void );
+
+ void Init( void );
+ void Reset( void );
+
+ // Sprite handling
+ void LoadWeaponSprites( WEAPON_FILE_INFO_HANDLE hWeaponFileInfo );
+ void LoadAllWeaponSprites( void );
+
+ // Ammo Handling
+ CHudTexture *GetAmmoIconFromWeapon( int iAmmoId );
+ const FileWeaponInfo_t *GetWeaponFromAmmo( int iAmmoId );
+};
+
+extern WeaponsResource gWR;
+
+#endif // WEAPONS_RESOURCE_H