44 lines
844 B
C#
44 lines
844 B
C#
using static XPlugin.Data.JsonLiteDB.JsonLiteDB;
|
|
|
|
public enum TowerType
|
|
{
|
|
NULL = -1,
|
|
PowerCore = 0,
|
|
DoubleTubeTower = 1,
|
|
GatlingTower = 2,
|
|
}
|
|
|
|
public class TowerInfo
|
|
{
|
|
public int ID;
|
|
|
|
public int Type;
|
|
|
|
public string Name;
|
|
|
|
public string CN_Name;
|
|
|
|
public int Lvl;
|
|
|
|
public float Hp;
|
|
|
|
public float SearchArea;
|
|
|
|
public float RotateSpeed;
|
|
|
|
public float GCD;
|
|
|
|
public TowerInfo(TableReader table)
|
|
{
|
|
ID = table["ID"].OptInt();
|
|
Type = table["Type"].OptInt();
|
|
Name = table["Name"].OptString();
|
|
CN_Name = table["CN_Name"].OptString();
|
|
Lvl = table["Lvl"].OptInt();
|
|
Hp = table["Hp"].OptFloat();
|
|
SearchArea = table["SearchArea"].OptFloat();
|
|
RotateSpeed = table["RotateSpeed"].OptFloat();
|
|
GCD = table["GCD"].OptFloat();
|
|
}
|
|
}
|