?? playeritems.h
字號:
#define MAX_WEAPON_NAME 128
struct HlWeaponInfo
{
char szName[MAX_WEAPON_NAME];
int iAmmoType;
int iAmmo2Type;
int iMax1;
int iMax2;
int iSlot;
int iSlotPos;
int iFlags;
int iId;
int iClip;
};
using namespace std;
class PlayerItems
{
public:
void msgWeaponList(int iSize, void *pbuf );
void msgCurWeapon (int iStat, int iId, int iClip );
void clearWeaponSlots(){slot1Index=-1; slot2Index=-1;}
char* getNamebyId(int id);
bool canSwitch();
char* getName1()
{
if(slot1Index==-1){ return "none"; }
else { return weaponList[slot1Index].szName; }
}
char* getName2()
{
if(slot2Index==-1){ return "none"; }
else { return weaponList[slot2Index].szName; }
}
bool hasWeapon(const char* name);
vector<HlWeaponInfo> weaponList;
int slot1Index;
int slot2Index;
int currentSlot;
int armor;
int money;
protected:
void* my_data;
public:
PlayerItems();
~PlayerItems();
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -