//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
public sealed partial class FixedFishList : Bright.Config.BeanBase
{
public JSONNode json;
public FixedFishList(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["FishID"].IsNumber) { throw new SerializationException(); } FishID = _json["FishID"]; }
{ if(!_json["SupplyDrop"].IsNumber) { throw new SerializationException(); } SupplyDrop = _json["SupplyDrop"]; }
{ if(!_json["SupplyDropIndex"].IsNumber) { throw new SerializationException(); } SupplyDropIndex = _json["SupplyDropIndex"]; }
{ if(!_json["EatFishType"].IsNumber) { throw new SerializationException(); } EatFishType = _json["EatFishType"]; }
{ if(!_json["EatenFishID"].IsNumber) { throw new SerializationException(); } EatenFishID = _json["EatenFishID"]; }
{ if(!_json["UIEatHpPercent"].IsNumber) { throw new SerializationException(); } UIEatHpPercent = _json["UIEatHpPercent"]; }
{ if(!_json["RealFishID"].IsNumber) { throw new SerializationException(); } RealFishID = _json["RealFishID"]; }
{ if(!_json["IfStaPowPopUp"].IsNumber) { throw new SerializationException(); } IfStaPowPopUp = _json["IfStaPowPopUp"]; }
json = _json;
PostInit();
}
public FixedFishList(int ID, int FishID, int SupplyDrop, int SupplyDropIndex, int EatFishType, int EatenFishID, float UIEatHpPercent, int RealFishID, int IfStaPowPopUp )
{
this.ID = ID;
this.FishID = FishID;
this.SupplyDrop = SupplyDrop;
this.SupplyDropIndex = SupplyDropIndex;
this.EatFishType = EatFishType;
this.EatenFishID = EatenFishID;
this.UIEatHpPercent = UIEatHpPercent;
this.RealFishID = RealFishID;
this.IfStaPowPopUp = IfStaPowPopUp;
PostInit();
}
public static FixedFishList DeserializeFixedFishList(JSONNode _json)
{
return new FixedFishList(_json);
}
///
/// 列表,循环
///
public int ID { get; private set; }
///
/// item表主键
///
public int FishID { get; private set; }
///
/// 对应空投表主键
///
public int SupplyDrop { get; private set; }
///
/// 1:体力
2:小玩法
3:体力buff
4:钞票buff
///
public int SupplyDropIndex { get; private set; }
///
/// 0:直接钓起
1:UI吃鱼
2:动画吃鱼
///
public int EatFishType { get; private set; }
///
/// item表主键
///
public int EatenFishID { get; private set; }
///
/// 从这个区间到0%之间随机出一个血量,血量低于这个数值就吃鱼
///
public float UIEatHpPercent { get; private set; }
///
/// 钓到的积分、重量会加给这个编号的鱼
///
public int RealFishID { get; private set; }
///
/// guidancepopuppanel的Station_powerreel是否生效
///
public int IfStaPowPopUp { get; private set; }
public const int __ID__ = 1521809034;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "FishID:" + FishID + ","
+ "SupplyDrop:" + SupplyDrop + ","
+ "SupplyDropIndex:" + SupplyDropIndex + ","
+ "EatFishType:" + EatFishType + ","
+ "EatenFishID:" + EatenFishID + ","
+ "UIEatHpPercent:" + UIEatHpPercent + ","
+ "RealFishID:" + RealFishID + ","
+ "IfStaPowPopUp:" + IfStaPowPopUp + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}