140 lines
8.1 KiB
C#
140 lines
8.1 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 EventPartnerMain : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventPartnerMain(JSONNode _json)
|
|
{
|
|
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
|
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
|
|
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
|
|
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
|
|
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
|
{ if(!_json["Addressable"].IsString) { throw new SerializationException(); } Addressable = _json["Addressable"]; }
|
|
{ if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; }
|
|
{ if(!_json["Bgm"].IsString) { throw new SerializationException(); } Bgm = _json["Bgm"]; }
|
|
{ if(!_json["WheelTicket"].IsNumber) { throw new SerializationException(); } WheelTicket = _json["WheelTicket"]; }
|
|
{ if(!_json["SpinRequire"].IsNumber) { throw new SerializationException(); } SpinRequire = _json["SpinRequire"]; }
|
|
{ var __json0 = _json["SpinMag"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinMag = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinMag.Add(__v0); } }
|
|
{ var __json0 = _json["SpinWeight"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinWeight = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinWeight.Add(__v0); } }
|
|
{ var __json0 = _json["SpinPoint"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinPoint = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinPoint.Add(__v0); } }
|
|
{ var __json0 = _json["SpinBg"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinBg = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } SpinBg.Add(__v0); } }
|
|
{ var __json0 = _json["StagePoint"]; if(!__json0.IsArray) { throw new SerializationException(); } StagePoint = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StagePoint.Add(__v0); } }
|
|
{ var __json0 = _json["StageReward"]; if(!__json0.IsArray) { throw new SerializationException(); } StageReward = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageReward.Add(__v0); } }
|
|
{ if(!_json["Reward"].IsNumber) { throw new SerializationException(); } Reward = _json["Reward"]; }
|
|
{ var __json0 = _json["ComponentList"]; if(!__json0.IsArray) { throw new SerializationException(); } ComponentList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ComponentList.Add(__v0); } }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventPartnerMain(int ID, string UIPanel, string InfoPanel, int PackId, string Icon, string Addressable, string Atlas, string Bgm, int WheelTicket, int SpinRequire, System.Collections.Generic.List<int> SpinMag, System.Collections.Generic.List<int> SpinWeight, System.Collections.Generic.List<int> SpinPoint, System.Collections.Generic.List<string> SpinBg, System.Collections.Generic.List<int> StagePoint, System.Collections.Generic.List<int> StageReward, int Reward, System.Collections.Generic.List<int> ComponentList )
|
|
{
|
|
this.ID = ID;
|
|
this.UIPanel = UIPanel;
|
|
this.InfoPanel = InfoPanel;
|
|
this.PackId = PackId;
|
|
this.Icon = Icon;
|
|
this.Addressable = Addressable;
|
|
this.Atlas = Atlas;
|
|
this.Bgm = Bgm;
|
|
this.WheelTicket = WheelTicket;
|
|
this.SpinRequire = SpinRequire;
|
|
this.SpinMag = SpinMag;
|
|
this.SpinWeight = SpinWeight;
|
|
this.SpinPoint = SpinPoint;
|
|
this.SpinBg = SpinBg;
|
|
this.StagePoint = StagePoint;
|
|
this.StageReward = StageReward;
|
|
this.Reward = Reward;
|
|
this.ComponentList = ComponentList;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventPartnerMain DeserializeEventPartnerMain(JSONNode _json)
|
|
{
|
|
return new EventPartnerMain(_json);
|
|
}
|
|
|
|
public int ID { get; private set; }
|
|
public string UIPanel { get; private set; }
|
|
public string InfoPanel { get; private set; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int PackId { get; private set; }
|
|
public string Icon { get; private set; }
|
|
public string Addressable { get; private set; }
|
|
public string Atlas { get; private set; }
|
|
public string Bgm { get; private set; }
|
|
/// <summary>
|
|
/// item表id
|
|
/// </summary>
|
|
public int WheelTicket { get; private set; }
|
|
public int SpinRequire { get; private set; }
|
|
public System.Collections.Generic.List<int> SpinMag { get; private set; }
|
|
public System.Collections.Generic.List<int> SpinWeight { get; private set; }
|
|
public System.Collections.Generic.List<int> SpinPoint { get; private set; }
|
|
public System.Collections.Generic.List<string> SpinBg { get; private set; }
|
|
public System.Collections.Generic.List<int> StagePoint { get; private set; }
|
|
public System.Collections.Generic.List<int> StageReward { get; private set; }
|
|
public int Reward { get; private set; }
|
|
/// <summary>
|
|
/// 调用EventAquariumUnit表
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> ComponentList { get; private set; }
|
|
|
|
public const int __ID__ = -364943417;
|
|
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 + ","
|
|
+ "UIPanel:" + UIPanel + ","
|
|
+ "InfoPanel:" + InfoPanel + ","
|
|
+ "PackId:" + PackId + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "Addressable:" + Addressable + ","
|
|
+ "Atlas:" + Atlas + ","
|
|
+ "Bgm:" + Bgm + ","
|
|
+ "WheelTicket:" + WheelTicket + ","
|
|
+ "SpinRequire:" + SpinRequire + ","
|
|
+ "SpinMag:" + Bright.Common.StringUtil.CollectionToString(SpinMag) + ","
|
|
+ "SpinWeight:" + Bright.Common.StringUtil.CollectionToString(SpinWeight) + ","
|
|
+ "SpinPoint:" + Bright.Common.StringUtil.CollectionToString(SpinPoint) + ","
|
|
+ "SpinBg:" + Bright.Common.StringUtil.CollectionToString(SpinBg) + ","
|
|
+ "StagePoint:" + Bright.Common.StringUtil.CollectionToString(StagePoint) + ","
|
|
+ "StageReward:" + Bright.Common.StringUtil.CollectionToString(StageReward) + ","
|
|
+ "Reward:" + Reward + ","
|
|
+ "ComponentList:" + Bright.Common.StringUtil.CollectionToString(ComponentList) + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|