//------------------------------------------------------------------------------ // // 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 System.Text.Json; namespace cfg.common { public sealed partial class GlobalConfig : Luban.BeanBase { public GlobalConfig(JsonElement _buf) { X1 = _buf.GetProperty("x1").GetInt32(); X2 = _buf.GetProperty("x2").GetInt32(); X3 = _buf.GetProperty("x3").GetInt32(); X4 = _buf.GetProperty("x4").GetInt32(); X5 = _buf.GetProperty("x5").GetInt32(); X6 = _buf.GetProperty("x6").GetInt32(); { var __json0 = _buf.GetProperty("x7"); X7 = new System.Collections.Generic.List(__json0.GetArrayLength()); foreach(JsonElement __e0 in __json0.EnumerateArray()) { int __v0; __v0 = __e0.GetInt32(); X7.Add(__v0); } } } public static GlobalConfig DeserializeGlobalConfig(JsonElement _buf) { return new common.GlobalConfig(_buf); } /// /// 背包容量 /// 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__ = -848234488; 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) + "," + "}"; } } }