备份CatanBuilding瘦身独立工程
This commit is contained in:
82
Assets/Scripts/Tables/CollectionTargetWeight.cs
Normal file
82
Assets/Scripts/Tables/CollectionTargetWeight.cs
Normal file
@@ -0,0 +1,82 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 目标奖励活动鱼权重
|
||||
/// </summary>
|
||||
public sealed partial class CollectionTargetWeight : FishBuffType
|
||||
{
|
||||
public CollectionTargetWeight(JSONNode _json) : base(_json)
|
||||
{
|
||||
{ var __json0 = _json["NewWeightList"]; if(!__json0.IsArray) { throw new SerializationException(); } NewWeightList = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } NewWeightList.Add(__v0); } }
|
||||
{ if(!_json["TargetFishIndex"].IsNumber) { throw new SerializationException(); } TargetFishIndex = _json["TargetFishIndex"]; }
|
||||
{ if(!_json["NewTargetFishProb"].IsNumber) { throw new SerializationException(); } NewTargetFishProb = _json["NewTargetFishProb"]; }
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public CollectionTargetWeight(System.Collections.Generic.List<float> NewWeightList, int TargetFishIndex, float NewTargetFishProb ) : base()
|
||||
{
|
||||
this.NewWeightList = NewWeightList;
|
||||
this.TargetFishIndex = TargetFishIndex;
|
||||
this.NewTargetFishProb = NewTargetFishProb;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static CollectionTargetWeight DeserializeCollectionTargetWeight(JSONNode _json)
|
||||
{
|
||||
return new CollectionTargetWeight(_json);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 目标奖励活动新的所有鱼的权重
|
||||
/// </summary>
|
||||
public System.Collections.Generic.List<float> NewWeightList { get; private set; }
|
||||
/// <summary>
|
||||
/// 钓到第几条鱼则buff消失
|
||||
/// </summary>
|
||||
public int TargetFishIndex { get; private set; }
|
||||
/// <summary>
|
||||
/// 修改目标奖励活动鱼的权重
|
||||
/// </summary>
|
||||
public float NewTargetFishProb { get; private set; }
|
||||
|
||||
public const int __ID__ = 1389764935;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public override void Resolve(Dictionary<string, object> _tables)
|
||||
{
|
||||
base.Resolve(_tables);
|
||||
PostResolve();
|
||||
}
|
||||
|
||||
public override void TranslateText(System.Func<string, string, string> translator)
|
||||
{
|
||||
base.TranslateText(translator);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "NewWeightList:" + Bright.Common.StringUtil.CollectionToString(NewWeightList) + ","
|
||||
+ "TargetFishIndex:" + TargetFishIndex + ","
|
||||
+ "NewTargetFishProb:" + NewTargetFishProb + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user