Files
KOF/Assets/_KOF/Scripts/Data/GunInfo.cs
2025-07-02 15:13:26 +08:00

44 lines
806 B
C#

using static XPlugin.Data.JsonLiteDB.JsonLiteDB;
public enum GunType
{
DoubleTubeGun = 0,
HR01Gun = 1,
PHR01Gun = 2,
MR3Gun = 3,
GRMIIGun = 4,
BLR02Gun = 5,
GatlingGun = 6,
ElectroGun = 7,
DragonBossGun = 8,
Pistol = 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 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();
}
}