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.
78 lines
1.3 KiB
78 lines
1.3 KiB
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
|
|
//
|
|
// Purpose: Holds defintion for game ammo types
|
|
//
|
|
// $Workfile: $
|
|
// $Date: $
|
|
// $NoKeywords: $
|
|
//=============================================================================//
|
|
|
|
#ifndef CS_BLACKMARKET_H
|
|
#define CS_BLACKMARKET_H
|
|
|
|
#include "cs_weapon_parse.h"
|
|
|
|
#ifdef CLIENT_DLL
|
|
#include "c_cs_player.h"
|
|
#else
|
|
#include "cs_player.h"
|
|
#endif
|
|
|
|
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
struct blackmarket_items_t
|
|
{
|
|
const char *pClassname;
|
|
int iDefaultPrice;
|
|
};
|
|
|
|
extern blackmarket_items_t blackmarket_items[];
|
|
|
|
void BlackMarketAddWeapon( const char *pWeaponName, CCSPlayer *pBuyer );
|
|
|
|
#ifndef CLIENT_DLL
|
|
class CBlackMarketElement
|
|
{
|
|
public:
|
|
|
|
DECLARE_CLASS_NOBASE( CBlackMarketElement );
|
|
|
|
// For CNetworkVars.
|
|
void NetworkStateChanged();
|
|
void NetworkStateChanged( void *pVar );
|
|
|
|
CBlackMarketElement()
|
|
{
|
|
m_iPrice = 0;
|
|
m_iTimesBought = 0;
|
|
m_iWeaponID = 0;
|
|
}
|
|
|
|
CNetworkVar( int, m_iPrice );
|
|
CNetworkVar( int, m_iWeaponID );
|
|
|
|
int m_iTimesBought;
|
|
};
|
|
|
|
|
|
#else
|
|
|
|
class C_BlackMarketElement
|
|
{
|
|
public:
|
|
|
|
// This allows the datatables to access private members.
|
|
ALLOW_DATATABLES_PRIVATE_ACCESS();
|
|
|
|
int m_iWeaponID;
|
|
int m_iPrice;
|
|
};
|
|
|
|
#define CBlackMarketElement C_BlackMarketElement
|
|
#endif
|
|
|
|
#endif // CS_BLACKMARKET_H
|
|
|