备份CatanBuilding瘦身独立工程
This commit is contained in:
135
Assets/Scripts/Tables/EventCanMain.cs
Normal file
135
Assets/Scripts/Tables/EventCanMain.cs
Normal file
@@ -0,0 +1,135 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 EventCanMain : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public EventCanMain(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["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"]; }
|
||||
{ if(!_json["Bgm"].IsString) { throw new SerializationException(); } Bgm = _json["Bgm"]; }
|
||||
{ if(!_json["ChainPackPanel"].IsString) { throw new SerializationException(); } ChainPackPanel = _json["ChainPackPanel"]; }
|
||||
{ if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; }
|
||||
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
|
||||
{ if(!_json["PackId2"].IsNumber) { throw new SerializationException(); } PackId2 = _json["PackId2"]; }
|
||||
{ if(!_json["PackIcon"].IsString) { throw new SerializationException(); } PackIcon = _json["PackIcon"]; }
|
||||
{ if(!_json["ItemCan"].IsNumber) { throw new SerializationException(); } ItemCan = _json["ItemCan"]; }
|
||||
{ var __json0 = _json["CanReward"]; if(!__json0.IsArray) { throw new SerializationException(); } CanReward = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CanReward.Add(__v0); } }
|
||||
{ var __json0 = _json["GemReward"]; if(!__json0.IsArray) { throw new SerializationException(); } GemReward = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } GemReward.Add(__v0); } }
|
||||
{ var __json0 = _json["CanRange"]; if(!__json0.IsArray) { throw new SerializationException(); } CanRange = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CanRange.Add(__v0); } }
|
||||
{ if(!_json["CanMax"].IsNumber) { throw new SerializationException(); } CanMax = _json["CanMax"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public EventCanMain(int ID, string UIPanel, string InfoPanel, string Icon, System.Collections.Generic.List<string> Addressable, string Atlas, string Bgm, string ChainPackPanel, string PackPanel, int PackId, int PackId2, string PackIcon, int ItemCan, System.Collections.Generic.List<int> CanReward, System.Collections.Generic.List<int> GemReward, System.Collections.Generic.List<int> CanRange, int CanMax )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.UIPanel = UIPanel;
|
||||
this.InfoPanel = InfoPanel;
|
||||
this.Icon = Icon;
|
||||
this.Addressable = Addressable;
|
||||
this.Atlas = Atlas;
|
||||
this.Bgm = Bgm;
|
||||
this.ChainPackPanel = ChainPackPanel;
|
||||
this.PackPanel = PackPanel;
|
||||
this.PackId = PackId;
|
||||
this.PackId2 = PackId2;
|
||||
this.PackIcon = PackIcon;
|
||||
this.ItemCan = ItemCan;
|
||||
this.CanReward = CanReward;
|
||||
this.GemReward = GemReward;
|
||||
this.CanRange = CanRange;
|
||||
this.CanMax = CanMax;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static EventCanMain DeserializeEventCanMain(JSONNode _json)
|
||||
{
|
||||
return new EventCanMain(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
public string UIPanel { get; private set; }
|
||||
public string InfoPanel { 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 string Bgm { get; private set; }
|
||||
public string ChainPackPanel { get; private set; }
|
||||
public string PackPanel { get; private set; }
|
||||
/// <summary>
|
||||
/// 读shop表
|
||||
/// </summary>
|
||||
public int PackId { get; private set; }
|
||||
/// <summary>
|
||||
/// 读shop表
|
||||
/// </summary>
|
||||
public int PackId2 { get; private set; }
|
||||
public string PackIcon { get; private set; }
|
||||
/// <summary>
|
||||
/// item表id
|
||||
/// </summary>
|
||||
public int ItemCan { get; private set; }
|
||||
public System.Collections.Generic.List<int> CanReward { get; private set; }
|
||||
public System.Collections.Generic.List<int> GemReward { get; private set; }
|
||||
public System.Collections.Generic.List<int> CanRange { get; private set; }
|
||||
public int CanMax { get; private set; }
|
||||
|
||||
public const int __ID__ = 1622133199;
|
||||
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 + ","
|
||||
+ "Icon:" + Icon + ","
|
||||
+ "Addressable:" + Bright.Common.StringUtil.CollectionToString(Addressable) + ","
|
||||
+ "Atlas:" + Atlas + ","
|
||||
+ "Bgm:" + Bgm + ","
|
||||
+ "ChainPackPanel:" + ChainPackPanel + ","
|
||||
+ "PackPanel:" + PackPanel + ","
|
||||
+ "PackId:" + PackId + ","
|
||||
+ "PackId2:" + PackId2 + ","
|
||||
+ "PackIcon:" + PackIcon + ","
|
||||
+ "ItemCan:" + ItemCan + ","
|
||||
+ "CanReward:" + Bright.Common.StringUtil.CollectionToString(CanReward) + ","
|
||||
+ "GemReward:" + Bright.Common.StringUtil.CollectionToString(GemReward) + ","
|
||||
+ "CanRange:" + Bright.Common.StringUtil.CollectionToString(CanRange) + ","
|
||||
+ "CanMax:" + CanMax + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user