Files
Loong/Assets/_Loong/Scripts/Data/GunInfo.cs

41 lines
758 B
C#

using static XPlugin.Data.JsonLiteDB.JsonLiteDB;
public enum GunType
{
Bow,
IceDragonMouth,
FishDragonMouth,
LightingDragonMouth,
WindBow,//风弓
FireBow,//火弓
PoisonBow,//毒弓
}
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 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();
}
}