aozhiwei 94c1f7ee47 1
2022-10-02 08:38:25 +08:00

34 lines
571 B
C++

#pragma once
namespace cs
{
class MFWeapon;
}
namespace MetaData
{
struct Equip;
struct Skill;
}
class Creature;
class Weapon
{
public:
long long weapon_uniid = 0;
int weapon_idx = 0;
int weapon_id = 0;
int ammo = 0;
MetaData::Equip* meta = nullptr;
MetaData::Equip* bullet_meta = nullptr;
MetaData::Skill* skill_meta = nullptr;
void Clear();
void ToPB(Creature* c, cs::MFWeapon* pb_obj);
void Recalc();
int GetClipVolume(Creature* c);
int GetFireRate(Creature* c);
int GetReloadTime(Creature* c);
};