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

39 lines
706 B
C#

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