1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-22 17:47:38 +08:00
hl2sdk/game/client/weapons_resource.h
2013-06-26 15:22:04 -07:00

45 lines
1.1 KiB
C++

//========= 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