Files
back_cantanBuilding/Assets/Scripts/Tables/EventSoloRobot.cs
2026-05-26 16:15:54 +08:00

87 lines
4.8 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
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<int>(__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<int>(__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<int>(__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<int>(__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<System.Collections.Generic.List<int>>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List<int> __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List<int>(__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<int> RobotList, int Trophy, System.Collections.Generic.List<int> RodId, System.Collections.Generic.List<int> RodLevel, System.Collections.Generic.List<int> RodStar, System.Collections.Generic.List<System.Collections.Generic.List<int>> 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<int> RobotList { get; private set; }
public int Trophy { get; private set; }
public System.Collections.Generic.List<int> RodId { get; private set; }
public System.Collections.Generic.List<int> RodLevel { get; private set; }
public System.Collections.Generic.List<int> RodStar { get; private set; }
public System.Collections.Generic.List<System.Collections.Generic.List<int>> CardLevel { get; private set; }
public const int __ID__ = -1243381903;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> 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();
}
}