127 lines
7.3 KiB
C#
127 lines
7.3 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 EventPotionMain : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventPotionMain(JSONNode _json)
|
|
{
|
|
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
|
{ if(!_json["Prefab"].IsString) { throw new SerializationException(); } Prefab = _json["Prefab"]; }
|
|
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
|
|
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
|
|
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
|
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
|
|
{ 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); } }
|
|
{ var __json0 = _json["PaintResource"]; if(!__json0.IsArray) { throw new SerializationException(); } PaintResource = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } PaintResource.Add(__v0); } }
|
|
{ if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; }
|
|
{ var __json0 = _json["ResourceID"]; if(!__json0.IsArray) { throw new SerializationException(); } ResourceID = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ResourceID.Add(__v0); } }
|
|
{ var __json0 = _json["BlockResourceID"]; if(!__json0.IsArray) { throw new SerializationException(); } BlockResourceID = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BlockResourceID.Add(__v0); } }
|
|
{ var __json0 = _json["StageList1"]; if(!__json0.IsArray) { throw new SerializationException(); } StageList1 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageList1.Add(__v0); } }
|
|
{ var __json0 = _json["StageList2"]; if(!__json0.IsArray) { throw new SerializationException(); } StageList2 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageList2.Add(__v0); } }
|
|
{ var __json0 = _json["GuidanceGroupList"]; if(!__json0.IsArray) { throw new SerializationException(); } GuidanceGroupList = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } GuidanceGroupList.Add(__v0); } }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventPotionMain(int ID, string Prefab, string UIPanel, string InfoPanel, string Icon, int PackId, System.Collections.Generic.List<string> ItemResource, System.Collections.Generic.List<string> PaintResource, string Atlas, System.Collections.Generic.List<int> ResourceID, System.Collections.Generic.List<int> BlockResourceID, System.Collections.Generic.List<int> StageList1, System.Collections.Generic.List<int> StageList2, System.Collections.Generic.List<string> GuidanceGroupList )
|
|
{
|
|
this.ID = ID;
|
|
this.Prefab = Prefab;
|
|
this.UIPanel = UIPanel;
|
|
this.InfoPanel = InfoPanel;
|
|
this.Icon = Icon;
|
|
this.PackId = PackId;
|
|
this.ItemResource = ItemResource;
|
|
this.PaintResource = PaintResource;
|
|
this.Atlas = Atlas;
|
|
this.ResourceID = ResourceID;
|
|
this.BlockResourceID = BlockResourceID;
|
|
this.StageList1 = StageList1;
|
|
this.StageList2 = StageList2;
|
|
this.GuidanceGroupList = GuidanceGroupList;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventPotionMain DeserializeEventPotionMain(JSONNode _json)
|
|
{
|
|
return new EventPotionMain(_json);
|
|
}
|
|
|
|
public int ID { get; private set; }
|
|
public string Prefab { get; private set; }
|
|
public string UIPanel { get; private set; }
|
|
public string InfoPanel { get; private set; }
|
|
public string Icon { get; private set; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int PackId { get; private set; }
|
|
/// <summary>
|
|
/// Spine的颜色
|
|
/// </summary>
|
|
public System.Collections.Generic.List<string> ItemResource { get; private set; }
|
|
public System.Collections.Generic.List<string> PaintResource { get; private set; }
|
|
public string Atlas { get; private set; }
|
|
public System.Collections.Generic.List<int> ResourceID { get; private set; }
|
|
public System.Collections.Generic.List<int> BlockResourceID { get; private set; }
|
|
/// <summary>
|
|
/// 调用EventPotionStage表
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> StageList1 { get; private set; }
|
|
/// <summary>
|
|
/// 调用EventPotionStage表
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> StageList2 { get; private set; }
|
|
public System.Collections.Generic.List<string> GuidanceGroupList { get; private set; }
|
|
|
|
public const int __ID__ = 1555615750;
|
|
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 + ","
|
|
+ "Prefab:" + Prefab + ","
|
|
+ "UIPanel:" + UIPanel + ","
|
|
+ "InfoPanel:" + InfoPanel + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "PackId:" + PackId + ","
|
|
+ "ItemResource:" + Bright.Common.StringUtil.CollectionToString(ItemResource) + ","
|
|
+ "PaintResource:" + Bright.Common.StringUtil.CollectionToString(PaintResource) + ","
|
|
+ "Atlas:" + Atlas + ","
|
|
+ "ResourceID:" + Bright.Common.StringUtil.CollectionToString(ResourceID) + ","
|
|
+ "BlockResourceID:" + Bright.Common.StringUtil.CollectionToString(BlockResourceID) + ","
|
|
+ "StageList1:" + Bright.Common.StringUtil.CollectionToString(StageList1) + ","
|
|
+ "StageList2:" + Bright.Common.StringUtil.CollectionToString(StageList2) + ","
|
|
+ "GuidanceGroupList:" + Bright.Common.StringUtil.CollectionToString(GuidanceGroupList) + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|