using static XPlugin.Data.JsonLiteDB.JsonLiteDB; public enum GunType { Pistol = 0, YanWuGun = 1, FangYuGun = 2, DuQiGun = 3, HuiFuGun = 4, GongJiGun = 5, ZhaDanGun = 6, SanDanGun = 7, DianJiGun = 8, WuDiZhao = 9, } public class GunInfo { public int ID; public int Type; public string Name; public string CN_Name; public int Lvl; public float Recoil; public float ShootRate; public int BulletAmount; public int Hp; public int Damage; public int Buff; public int Time; public int CoolDown; public int Score; public GunInfo(TableReader table) { ID = table["ID"].OptInt(); Type = table["Type"].OptInt(); Name = table["Name"].OptString(); CN_Name = table["CN_Name"].OptString(); Lvl = table["Lvl"].OptInt(); Recoil = table["Recoil"].OptFloat(); ShootRate = table["ShootRate"].OptFloat(); BulletAmount = table["BulletAmount"].OptInt(); Hp = table["Hp"].OptInt(); Damage = table["Damage"].OptInt(); Buff = table["Buff"].OptInt(); Time = table["Time"].OptInt(); CoolDown= table["CoolDown"].OptInt(); Score= table["Score"].OptInt(); } }