//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Luban; using SimpleJSON; namespace cfg { public sealed partial class BProp : Luban.BeanBase { public BProp(JSONNode _buf) { { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } { if(!_buf["PropName"].IsString) { throw new SerializationException(); } PropName = _buf["PropName"]; } { if(!_buf["PropType"].IsNumber) { throw new SerializationException(); } PropType = _buf["PropType"]; } { if(!_buf["Proplevel"].IsNumber) { throw new SerializationException(); } Proplevel = _buf["Proplevel"]; } { if(!_buf["Preform"].IsString) { throw new SerializationException(); } Preform = _buf["Preform"]; } { if(!_buf["Propicon"].IsString) { throw new SerializationException(); } Propicon = _buf["Propicon"]; } { if(!_buf["Propfunction"].IsNumber) { throw new SerializationException(); } Propfunction = _buf["Propfunction"]; } { if(!_buf["Propattributes"].IsNumber) { throw new SerializationException(); } Propattributes = _buf["Propattributes"]; } { if(!_buf["NextLevelID"].IsNumber) { throw new SerializationException(); } NextLevelID = _buf["NextLevelID"]; } { if(!_buf["Propweight"].IsNumber) { throw new SerializationException(); } Propweight = _buf["Propweight"]; } } public static BProp DeserializeBProp(JSONNode _buf) { return new BProp(_buf); } /// /// ID /// public readonly int ID; /// /// 道具名称 /// public readonly string PropName; /// /// 道具类型 /// public readonly int PropType; /// /// 道具等级 /// public readonly int Proplevel; /// /// 预制体名字 /// public readonly string Preform; /// /// 道具图标 /// public readonly string Propicon; /// /// 道具作用类型 /// public readonly int Propfunction; /// /// 道具属性值 /// public readonly float Propattributes; /// /// 下一级ID /// public readonly int NextLevelID; /// /// 道具占比权重 /// public readonly int Propweight; public const int __ID__ = 63448773; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "PropName:" + PropName + "," + "PropType:" + PropType + "," + "Proplevel:" + Proplevel + "," + "Preform:" + Preform + "," + "Propicon:" + Propicon + "," + "Propfunction:" + Propfunction + "," + "Propattributes:" + Propattributes + "," + "NextLevelID:" + NextLevelID + "," + "Propweight:" + Propweight + "," + "}"; } } }