using System.Collections; using System.Collections.Generic; using UnityEngine; using static XPlugin.Data.JsonLiteDB.JsonLiteDB; public enum PropType { BloodBag = 501, EnergyMask = 502, AtkBuff = 503, DefenseBuff = 504, EnergyPump = 505 } public class PropInfo { /// /// 道具唯一ID /// public int PropId; /// /// 道具CN名称 /// public string PropNameCn; /// /// 道具EN名称 /// public string PropName; /// /// 道具表述 /// public string PropDesc; /// /// 道具效果 乘系数 /// public float Effect; public PropInfo(TableReader table) { PropId = table["PropId"].OptInt(); PropNameCn = table["PropNameCn"].OptString(); PropName = table["PropName"].OptString(); PropDesc = table["PropDesc"].OptString(); Effect = table["Effect"].OptFloat(); } }