initial
This commit is contained in:
54
game/shared/cstrike15/cs_ammodef.h
Normal file
54
game/shared/cstrike15/cs_ammodef.h
Normal file
@@ -0,0 +1,54 @@
|
||||
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose: Holds defintion for game ammo types
|
||||
//
|
||||
// $Workfile: $
|
||||
// $Date: $
|
||||
// $NoKeywords: $
|
||||
//=============================================================================//
|
||||
|
||||
#ifndef CS_AMMODEF_H
|
||||
#define CS_AMMODEF_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "ammodef.h"
|
||||
|
||||
class ConVar;
|
||||
|
||||
struct CSAmmoCost
|
||||
{
|
||||
int buySize;
|
||||
int cost;
|
||||
};
|
||||
|
||||
//=============================================================================
|
||||
// >> CCSAmmoDef
|
||||
//=============================================================================
|
||||
class CCSAmmoDef : public CAmmoDef
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
void AddAmmoCost( char const* name, int cost, int buySize );
|
||||
|
||||
CCSAmmoDef(void);
|
||||
~CCSAmmoDef( void );
|
||||
|
||||
int GetBuySize( int nAmmoIndex ) const;
|
||||
int GetCost( int nAmmoIndex ) const;
|
||||
|
||||
private:
|
||||
CSAmmoCost m_csAmmo[MAX_AMMO_TYPES];
|
||||
};
|
||||
|
||||
|
||||
// Get the global ammodef object. This is usually implemented in each mod's game rules file somewhere,
|
||||
// so the mod can setup custom ammo types.
|
||||
CCSAmmoDef* GetCSAmmoDef();
|
||||
|
||||
|
||||
#endif // CS_AMMODEF_H
|
||||
|
||||
Reference in New Issue
Block a user