//------------------------------------------------------------------------------ // // 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.BlacksmithData { public sealed partial class LevelFallingData : Luban.BeanBase { public LevelFallingData(JSONNode _buf) { { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } { if(!_buf["Drop1"].IsNumber) { throw new SerializationException(); } Drop1 = _buf["Drop1"]; } { var __json0 = _buf["Drop1num"]; if(!__json0.IsArray) { throw new SerializationException(); } Drop1num = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Drop1num.Add(__v0); } } { if(!_buf["Drop2"].IsNumber) { throw new SerializationException(); } Drop2 = _buf["Drop2"]; } { var __json0 = _buf["Drop2num"]; if(!__json0.IsArray) { throw new SerializationException(); } Drop2num = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Drop2num.Add(__v0); } } } public static LevelFallingData DeserializeLevelFallingData(JSONNode _buf) { return new BlacksmithData.LevelFallingData(_buf); } /// /// 掉落ID /// public readonly int ID; /// /// 掉落道具1 /// public readonly int Drop1; /// /// 掉落区间1 /// public readonly System.Collections.Generic.List Drop1num; /// /// 掉落道具2 /// public readonly int Drop2; /// /// 掉落区间2 /// public readonly System.Collections.Generic.List Drop2num; public const int __ID__ = 1784056173; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "Drop1:" + Drop1 + "," + "Drop1num:" + Luban.StringUtil.CollectionToString(Drop1num) + "," + "Drop2:" + Drop2 + "," + "Drop2num:" + Luban.StringUtil.CollectionToString(Drop2num) + "," + "}"; } } }