备份CatanBuilding瘦身独立工程
This commit is contained in:
99
Assets/Scripts/Tables/EventPinataPackMain.cs
Normal file
99
Assets/Scripts/Tables/EventPinataPackMain.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 EventPinataPackMain : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public EventPinataPackMain(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["ActPrefab"].IsString) { throw new SerializationException(); } ActPrefab = _json["ActPrefab"]; }
|
||||
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
||||
{ if(!_json["HitTimes"].IsNumber) { throw new SerializationException(); } HitTimes = _json["HitTimes"]; }
|
||||
{ if(!_json["Item"].IsNumber) { throw new SerializationException(); } Item = _json["Item"]; }
|
||||
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public EventPinataPackMain(int ID, string UIPanel, string GamePanel, string ActPrefab, string Icon, int HitTimes, int Item, int PackId )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.UIPanel = UIPanel;
|
||||
this.GamePanel = GamePanel;
|
||||
this.ActPrefab = ActPrefab;
|
||||
this.Icon = Icon;
|
||||
this.HitTimes = HitTimes;
|
||||
this.Item = Item;
|
||||
this.PackId = PackId;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static EventPinataPackMain DeserializeEventPinataPackMain(JSONNode _json)
|
||||
{
|
||||
return new EventPinataPackMain(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
public string UIPanel { get; private set; }
|
||||
public string GamePanel { get; private set; }
|
||||
/// <summary>
|
||||
/// 用于配置活动参数
|
||||
/// </summary>
|
||||
public string ActPrefab { get; private set; }
|
||||
public string Icon { get; private set; }
|
||||
public int HitTimes { get; private set; }
|
||||
/// <summary>
|
||||
/// 读item表
|
||||
/// </summary>
|
||||
public int Item { get; private set; }
|
||||
/// <summary>
|
||||
/// 读shop表,礼包id
|
||||
/// </summary>
|
||||
public int PackId { get; private set; }
|
||||
|
||||
public const int __ID__ = -1290143611;
|
||||
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 + ","
|
||||
+ "ActPrefab:" + ActPrefab + ","
|
||||
+ "Icon:" + Icon + ","
|
||||
+ "HitTimes:" + HitTimes + ","
|
||||
+ "Item:" + Item + ","
|
||||
+ "PackId:" + PackId + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user