//------------------------------------------------------------------------------ // // 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 Bright.Serialization; using System.Collections.Generic; using SimpleJSON; namespace cfg { public sealed partial class EventSoloRobot : Bright.Config.BeanBase { public JSONNode json; public EventSoloRobot(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { var __json0 = _json["RobotList"]; if(!__json0.IsArray) { throw new SerializationException(); } RobotList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RobotList.Add(__v0); } } { if(!_json["Trophy"].IsNumber) { throw new SerializationException(); } Trophy = _json["Trophy"]; } { var __json0 = _json["RodId"]; if(!__json0.IsArray) { throw new SerializationException(); } RodId = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RodId.Add(__v0); } } { var __json0 = _json["RodLevel"]; if(!__json0.IsArray) { throw new SerializationException(); } RodLevel = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RodLevel.Add(__v0); } } { var __json0 = _json["RodStar"]; if(!__json0.IsArray) { throw new SerializationException(); } RodStar = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RodStar.Add(__v0); } } { var __json0 = _json["CardLevel"]; if(!__json0.IsArray) { throw new SerializationException(); } CardLevel = new System.Collections.Generic.List>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { int __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } CardLevel.Add(__v0); } } json = _json; PostInit(); } public EventSoloRobot(int ID, System.Collections.Generic.List RobotList, int Trophy, System.Collections.Generic.List RodId, System.Collections.Generic.List RodLevel, System.Collections.Generic.List RodStar, System.Collections.Generic.List> CardLevel ) { this.ID = ID; this.RobotList = RobotList; this.Trophy = Trophy; this.RodId = RodId; this.RodLevel = RodLevel; this.RodStar = RodStar; this.CardLevel = CardLevel; PostInit(); } public static EventSoloRobot DeserializeEventSoloRobot(JSONNode _json) { return new EventSoloRobot(_json); } public int ID { get; private set; } public System.Collections.Generic.List RobotList { get; private set; } public int Trophy { get; private set; } public System.Collections.Generic.List RodId { get; private set; } public System.Collections.Generic.List RodLevel { get; private set; } public System.Collections.Generic.List RodStar { get; private set; } public System.Collections.Generic.List> CardLevel { get; private set; } public const int __ID__ = -1243381903; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "RobotList:" + Bright.Common.StringUtil.CollectionToString(RobotList) + "," + "Trophy:" + Trophy + "," + "RodId:" + Bright.Common.StringUtil.CollectionToString(RodId) + "," + "RodLevel:" + Bright.Common.StringUtil.CollectionToString(RodLevel) + "," + "RodStar:" + Bright.Common.StringUtil.CollectionToString(RodStar) + "," + "CardLevel:" + Bright.Common.StringUtil.CollectionToString(CardLevel) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }