Files
Zombie/Assets/_Zombie/Scripts/Data/GunInfo.cs
2025-08-19 18:32:47 +08:00

44 lines
793 B
C#

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