125 lines
6.1 KiB
C#
125 lines
6.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 EventBingoInit : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventBingoInit(JSONNode _json)
|
|
{
|
|
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
|
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
|
{ if(!_json["ItemId"].IsNumber) { throw new SerializationException(); } ItemId = _json["ItemId"]; }
|
|
{ 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["UIRes"].IsString) { throw new SerializationException(); } UIRes = _json["UIRes"]; }
|
|
{ if(!_json["TargetID"].IsNumber) { throw new SerializationException(); } TargetID = _json["TargetID"]; }
|
|
{ var __json0 = _json["BingoTypeID"]; if(!__json0.IsArray) { throw new SerializationException(); } BingoTypeID = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BingoTypeID.Add(__v0); } }
|
|
{ var __json0 = _json["ItemResource"]; if(!__json0.IsArray) { throw new SerializationException(); } ItemResource = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } ItemResource.Add(__v0); } }
|
|
{ if(!_json["ContainerResource"].IsString) { throw new SerializationException(); } ContainerResource = _json["ContainerResource"]; }
|
|
{ if(!_json["DisplayResource"].IsString) { throw new SerializationException(); } DisplayResource = _json["DisplayResource"]; }
|
|
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
|
|
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
|
|
{ if(!_json["BattlePassID"].IsNumber) { throw new SerializationException(); } BattlePassID = _json["BattlePassID"]; }
|
|
{ if(!_json["SweepPackId"].IsNumber) { throw new SerializationException(); } SweepPackId = _json["SweepPackId"]; }
|
|
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventBingoInit(int ID, string Icon, int ItemId, System.Collections.Generic.List<string> Addressable, string UIRes, int TargetID, System.Collections.Generic.List<int> BingoTypeID, System.Collections.Generic.List<string> ItemResource, string ContainerResource, string DisplayResource, string UIPanel, string InfoPanel, int BattlePassID, int SweepPackId, int PackId )
|
|
{
|
|
this.ID = ID;
|
|
this.Icon = Icon;
|
|
this.ItemId = ItemId;
|
|
this.Addressable = Addressable;
|
|
this.UIRes = UIRes;
|
|
this.TargetID = TargetID;
|
|
this.BingoTypeID = BingoTypeID;
|
|
this.ItemResource = ItemResource;
|
|
this.ContainerResource = ContainerResource;
|
|
this.DisplayResource = DisplayResource;
|
|
this.UIPanel = UIPanel;
|
|
this.InfoPanel = InfoPanel;
|
|
this.BattlePassID = BattlePassID;
|
|
this.SweepPackId = SweepPackId;
|
|
this.PackId = PackId;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventBingoInit DeserializeEventBingoInit(JSONNode _json)
|
|
{
|
|
return new EventBingoInit(_json);
|
|
}
|
|
|
|
public int ID { get; private set; }
|
|
public string Icon { get; private set; }
|
|
public int ItemId { get; private set; }
|
|
public System.Collections.Generic.List<string> Addressable { get; private set; }
|
|
public string UIRes { get; private set; }
|
|
public int TargetID { get; private set; }
|
|
public System.Collections.Generic.List<int> BingoTypeID { get; private set; }
|
|
public System.Collections.Generic.List<string> ItemResource { get; private set; }
|
|
public string ContainerResource { get; private set; }
|
|
public string DisplayResource { get; private set; }
|
|
public string UIPanel { get; private set; }
|
|
public string InfoPanel { get; private set; }
|
|
public int BattlePassID { get; private set; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int SweepPackId { get; private set; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int PackId { get; private set; }
|
|
|
|
public const int __ID__ = -876718971;
|
|
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 + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "ItemId:" + ItemId + ","
|
|
+ "Addressable:" + Bright.Common.StringUtil.CollectionToString(Addressable) + ","
|
|
+ "UIRes:" + UIRes + ","
|
|
+ "TargetID:" + TargetID + ","
|
|
+ "BingoTypeID:" + Bright.Common.StringUtil.CollectionToString(BingoTypeID) + ","
|
|
+ "ItemResource:" + Bright.Common.StringUtil.CollectionToString(ItemResource) + ","
|
|
+ "ContainerResource:" + ContainerResource + ","
|
|
+ "DisplayResource:" + DisplayResource + ","
|
|
+ "UIPanel:" + UIPanel + ","
|
|
+ "InfoPanel:" + InfoPanel + ","
|
|
+ "BattlePassID:" + BattlePassID + ","
|
|
+ "SweepPackId:" + SweepPackId + ","
|
|
+ "PackId:" + PackId + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|