//------------------------------------------------------------------------------ // // 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 Newtonsoft.Json.Linq; namespace cfg { public sealed partial class BasicConfig : Luban.BeanBase { public BasicConfig(JToken _buf) { JObject _obj = _buf as JObject; X1 = (int)_obj.GetValue("x1"); X2 = (int)_obj.GetValue("x2"); X3 = (int)_obj.GetValue("x3"); X4 = (int)_obj.GetValue("x4"); X5 = (int)_obj.GetValue("x5"); X6 = (int)_obj.GetValue("x6"); { var __json0 = _obj.GetValue("x7"); X7 = new System.Collections.Generic.List((__json0 as JArray).Count); foreach(JToken __e0 in __json0) { int __v0; __v0 = (int)__e0; X7.Add(__v0); } } } public static BasicConfig DeserializeBasicConfig(JToken _buf) { return new BasicConfig(_buf); } /// /// 参数1 /// public readonly int X1; /// /// 道具 /// public readonly int X2; public readonly int X3; public readonly int X4; public readonly int X5; public readonly int X6; public readonly System.Collections.Generic.List X7; public const int __ID__ = 378573040; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "x1:" + X1 + "," + "x2:" + X2 + "," + "x3:" + X3 + "," + "x4:" + X4 + "," + "x5:" + X5 + "," + "x6:" + X6 + "," + "x7:" + Luban.StringUtil.CollectionToString(X7) + "," + "}"; } } }