Counter Strike : Global Offensive Source Code
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.

44 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef WEAPONS_RESOURCE_H
  8. #define WEAPONS_RESOURCE_H
  9. #pragma once
  10. #include "shareddefs.h"
  11. #include "utldict.h"
  12. #include "hud.h"
  13. class C_BaseCombatWeapon;
  14. class CHudTexture;
  15. typedef unsigned short WEAPON_FILE_INFO_HANDLE;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: Stores data about the Weapon Definitions passed to the client when
  18. // the client first connects to a server.
  19. //-----------------------------------------------------------------------------
  20. class WeaponsResource
  21. {
  22. public:
  23. WeaponsResource( void );
  24. ~WeaponsResource( void );
  25. void Init( void );
  26. void Reset( void );
  27. // Sprite handling
  28. void LoadWeaponSprites( WEAPON_FILE_INFO_HANDLE hWeaponFileInfo );
  29. void LoadAllWeaponSprites( void );
  30. // Ammo Handling
  31. CHudTexture *GetAmmoIconFromWeapon( int iAmmoId );
  32. const FileWeaponInfo_t *GetWeaponFromAmmo( int iAmmoId );
  33. };
  34. extern WeaponsResource gWR;
  35. #endif // WEAPONS_RESOURCE_H