备份CatanBuilding瘦身独立工程
This commit is contained in:
96
Assets/Scripts/Tables/FishCard.cs
Normal file
96
Assets/Scripts/Tables/FishCard.cs
Normal file
@@ -0,0 +1,96 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 FishCard : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public FishCard(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
||||
{ if(!_json["FishID"].IsNumber) { throw new SerializationException(); } FishID = _json["FishID"]; }
|
||||
{ if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; }
|
||||
{ if(!_json["MaxLevel"].IsNumber) { throw new SerializationException(); } MaxLevel = _json["MaxLevel"]; }
|
||||
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
||||
{ var __json0 = _json["CardsRequiredList"]; if(!__json0.IsArray) { throw new SerializationException(); } CardsRequiredList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CardsRequiredList.Add(__v0); } }
|
||||
{ var __json0 = _json["WeightMagList"]; if(!__json0.IsArray) { throw new SerializationException(); } WeightMagList = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } WeightMagList.Add(__v0); } }
|
||||
{ var __json0 = _json["DamageMagList"]; if(!__json0.IsArray) { throw new SerializationException(); } DamageMagList = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DamageMagList.Add(__v0); } }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public FishCard(int ID, int FishID, int Quality, int MaxLevel, string Icon, System.Collections.Generic.List<int> CardsRequiredList, System.Collections.Generic.List<float> WeightMagList, System.Collections.Generic.List<float> DamageMagList )
|
||||
{
|
||||
this.ID = ID;
|
||||
this.FishID = FishID;
|
||||
this.Quality = Quality;
|
||||
this.MaxLevel = MaxLevel;
|
||||
this.Icon = Icon;
|
||||
this.CardsRequiredList = CardsRequiredList;
|
||||
this.WeightMagList = WeightMagList;
|
||||
this.DamageMagList = DamageMagList;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static FishCard DeserializeFishCard(JSONNode _json)
|
||||
{
|
||||
return new FishCard(_json);
|
||||
}
|
||||
|
||||
public int ID { get; private set; }
|
||||
public int FishID { get; private set; }
|
||||
public int Quality { get; private set; }
|
||||
public int MaxLevel { get; private set; }
|
||||
public string Icon { get; private set; }
|
||||
public System.Collections.Generic.List<int> CardsRequiredList { get; private set; }
|
||||
/// <summary>
|
||||
/// 到达对应熟练度等级时,赠送的鱼重量奖励
|
||||
/// </summary>
|
||||
public System.Collections.Generic.List<float> WeightMagList { get; private set; }
|
||||
/// <summary>
|
||||
/// 提高对鱼的伤害,和鱼竿是加法叠加
|
||||
/// </summary>
|
||||
public System.Collections.Generic.List<float> DamageMagList { get; private set; }
|
||||
|
||||
public const int __ID__ = -468230744;
|
||||
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 + ","
|
||||
+ "FishID:" + FishID + ","
|
||||
+ "Quality:" + Quality + ","
|
||||
+ "MaxLevel:" + MaxLevel + ","
|
||||
+ "Icon:" + Icon + ","
|
||||
+ "CardsRequiredList:" + Bright.Common.StringUtil.CollectionToString(CardsRequiredList) + ","
|
||||
+ "WeightMagList:" + Bright.Common.StringUtil.CollectionToString(WeightMagList) + ","
|
||||
+ "DamageMagList:" + Bright.Common.StringUtil.CollectionToString(DamageMagList) + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user