160 lines
9.2 KiB
C#
160 lines
9.2 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 EventPartnerStatueMain : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventPartnerStatueMain(JSONNode _json)
|
|
{
|
|
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
|
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
|
|
{ if(!_json["GamePanel"].IsString) { throw new SerializationException(); } GamePanel = _json["GamePanel"]; }
|
|
{ if(!_json["Act"].IsString) { throw new SerializationException(); } Act = _json["Act"]; }
|
|
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
|
|
{ if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; }
|
|
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
|
|
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
|
{ var __json0 = _json["Addressable"]; if(!__json0.IsArray) { throw new SerializationException(); } Addressable = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Addressable.Add(__v0); } }
|
|
{ if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; }
|
|
{ var __json0 = _json["Statue1Mask"]; if(!__json0.IsArray) { throw new SerializationException(); } Statue1Mask = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Statue1Mask.Add(__v0); } }
|
|
{ var __json0 = _json["Statue2Mask"]; if(!__json0.IsArray) { throw new SerializationException(); } Statue2Mask = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Statue2Mask.Add(__v0); } }
|
|
{ if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; }
|
|
{ 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["PointList"]; if(!__json0.IsArray) { throw new SerializationException(); } PointList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PointList.Add(__v0); } }
|
|
{ var __json0 = _json["DiceList"]; if(!__json0.IsArray) { throw new SerializationException(); } DiceList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DiceList.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"]; }
|
|
{ if(!_json["TokenExchangeId"].IsNumber) { throw new SerializationException(); } TokenExchangeId = _json["TokenExchangeId"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventPartnerStatueMain(int ID, string UIPanel, string GamePanel, string Act, string InfoPanel, string PackPanel, int PackId, string Icon, System.Collections.Generic.List<string> Addressable, string Atlas, System.Collections.Generic.List<string> Statue1Mask, System.Collections.Generic.List<string> Statue2Mask, int ItemID, System.Collections.Generic.List<int> SpinMag, System.Collections.Generic.List<int> PointList, System.Collections.Generic.List<int> DiceList, System.Collections.Generic.List<int> StagePoint, System.Collections.Generic.List<int> StageReward, int Reward, int TokenExchangeId )
|
|
{
|
|
this.ID = ID;
|
|
this.UIPanel = UIPanel;
|
|
this.GamePanel = GamePanel;
|
|
this.Act = Act;
|
|
this.InfoPanel = InfoPanel;
|
|
this.PackPanel = PackPanel;
|
|
this.PackId = PackId;
|
|
this.Icon = Icon;
|
|
this.Addressable = Addressable;
|
|
this.Atlas = Atlas;
|
|
this.Statue1Mask = Statue1Mask;
|
|
this.Statue2Mask = Statue2Mask;
|
|
this.ItemID = ItemID;
|
|
this.SpinMag = SpinMag;
|
|
this.PointList = PointList;
|
|
this.DiceList = DiceList;
|
|
this.StagePoint = StagePoint;
|
|
this.StageReward = StageReward;
|
|
this.Reward = Reward;
|
|
this.TokenExchangeId = TokenExchangeId;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventPartnerStatueMain DeserializeEventPartnerStatueMain(JSONNode _json)
|
|
{
|
|
return new EventPartnerStatueMain(_json);
|
|
}
|
|
|
|
public int ID { get; private set; }
|
|
/// <summary>
|
|
/// 邀请界面
|
|
/// </summary>
|
|
public string UIPanel { get; private set; }
|
|
/// <summary>
|
|
/// 玩法界面
|
|
/// </summary>
|
|
public string GamePanel { get; private set; }
|
|
public string Act { get; private set; }
|
|
/// <summary>
|
|
/// 玩法说明
|
|
/// </summary>
|
|
public string InfoPanel { get; private set; }
|
|
public string PackPanel { get; private set; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int PackId { get; private set; }
|
|
public string Icon { get; private set; }
|
|
public System.Collections.Generic.List<string> Addressable { get; private set; }
|
|
public string Atlas { get; private set; }
|
|
public System.Collections.Generic.List<string> Statue1Mask { get; private set; }
|
|
public System.Collections.Generic.List<string> Statue2Mask { get; private set; }
|
|
/// <summary>
|
|
/// item表id
|
|
/// </summary>
|
|
public int ItemID { get; private set; }
|
|
public System.Collections.Generic.List<int> SpinMag { get; private set; }
|
|
public System.Collections.Generic.List<int> PointList { get; private set; }
|
|
public System.Collections.Generic.List<int> DiceList { get; private set; }
|
|
public System.Collections.Generic.List<int> StagePoint { get; private set; }
|
|
public System.Collections.Generic.List<int> StageReward { get; private set; }
|
|
/// <summary>
|
|
/// ID
|
|
/// </summary>
|
|
public int Reward { get; private set; }
|
|
/// <summary>
|
|
/// EventPartnerTokenExchange主键
|
|
/// </summary>
|
|
public int TokenExchangeId { get; private set; }
|
|
|
|
public const int __ID__ = 1179768651;
|
|
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 + ","
|
|
+ "GamePanel:" + GamePanel + ","
|
|
+ "Act:" + Act + ","
|
|
+ "InfoPanel:" + InfoPanel + ","
|
|
+ "PackPanel:" + PackPanel + ","
|
|
+ "PackId:" + PackId + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "Addressable:" + Bright.Common.StringUtil.CollectionToString(Addressable) + ","
|
|
+ "Atlas:" + Atlas + ","
|
|
+ "Statue1Mask:" + Bright.Common.StringUtil.CollectionToString(Statue1Mask) + ","
|
|
+ "Statue2Mask:" + Bright.Common.StringUtil.CollectionToString(Statue2Mask) + ","
|
|
+ "ItemID:" + ItemID + ","
|
|
+ "SpinMag:" + Bright.Common.StringUtil.CollectionToString(SpinMag) + ","
|
|
+ "PointList:" + Bright.Common.StringUtil.CollectionToString(PointList) + ","
|
|
+ "DiceList:" + Bright.Common.StringUtil.CollectionToString(DiceList) + ","
|
|
+ "StagePoint:" + Bright.Common.StringUtil.CollectionToString(StagePoint) + ","
|
|
+ "StageReward:" + Bright.Common.StringUtil.CollectionToString(StageReward) + ","
|
|
+ "Reward:" + Reward + ","
|
|
+ "TokenExchangeId:" + TokenExchangeId + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|