备份CatanBuilding瘦身独立工程
This commit is contained in:
131
Assets/Scripts/Tables/ConstructionInfiniteConfig.cs
Normal file
131
Assets/Scripts/Tables/ConstructionInfiniteConfig.cs
Normal file
@@ -0,0 +1,131 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 ConstructionInfiniteConfig : Bright.Config.BeanBase
|
||||
{
|
||||
public JSONNode json;
|
||||
public ConstructionInfiniteConfig(JSONNode _json)
|
||||
{
|
||||
{ if(!_json["ResetCost"].IsNumber) { throw new SerializationException(); } ResetCost = _json["ResetCost"]; }
|
||||
{ if(!_json["BasicCost"].IsNumber) { throw new SerializationException(); } BasicCost = _json["BasicCost"]; }
|
||||
{ if(!_json["PerfectReturnPoint"].IsNumber) { throw new SerializationException(); } PerfectReturnPoint = _json["PerfectReturnPoint"]; }
|
||||
{ var __json0 = _json["CashMagList"]; if(!__json0.IsArray) { throw new SerializationException(); } CashMagList = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CashMagList.Add(__v0); } }
|
||||
{ var __json0 = _json["GoodRankClamp"]; if(!__json0.IsArray) { throw new SerializationException(); } GoodRankClamp = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } GoodRankClamp.Add(__v0); } }
|
||||
{ var __json0 = _json["FantasticRankClamp"]; if(!__json0.IsArray) { throw new SerializationException(); } FantasticRankClamp = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FantasticRankClamp.Add(__v0); } }
|
||||
{ if(!_json["GoodReturnPoint"].IsNumber) { throw new SerializationException(); } GoodReturnPoint = _json["GoodReturnPoint"]; }
|
||||
{ if(!_json["FantasticReturnPoint"].IsNumber) { throw new SerializationException(); } FantasticReturnPoint = _json["FantasticReturnPoint"]; }
|
||||
{ if(!_json["ComboOnceReturnPoint"].IsNumber) { throw new SerializationException(); } ComboOnceReturnPoint = _json["ComboOnceReturnPoint"]; }
|
||||
{ if(!_json["ComboReturnMaxCount"].IsNumber) { throw new SerializationException(); } ComboReturnMaxCount = _json["ComboReturnMaxCount"]; }
|
||||
json = _json;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public ConstructionInfiniteConfig(int ResetCost, int BasicCost, float PerfectReturnPoint, System.Collections.Generic.List<float> CashMagList, System.Collections.Generic.List<int> GoodRankClamp, System.Collections.Generic.List<int> FantasticRankClamp, float GoodReturnPoint, float FantasticReturnPoint, float ComboOnceReturnPoint, int ComboReturnMaxCount )
|
||||
{
|
||||
this.ResetCost = ResetCost;
|
||||
this.BasicCost = BasicCost;
|
||||
this.PerfectReturnPoint = PerfectReturnPoint;
|
||||
this.CashMagList = CashMagList;
|
||||
this.GoodRankClamp = GoodRankClamp;
|
||||
this.FantasticRankClamp = FantasticRankClamp;
|
||||
this.GoodReturnPoint = GoodReturnPoint;
|
||||
this.FantasticReturnPoint = FantasticReturnPoint;
|
||||
this.ComboOnceReturnPoint = ComboOnceReturnPoint;
|
||||
this.ComboReturnMaxCount = ComboReturnMaxCount;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static ConstructionInfiniteConfig DeserializeConstructionInfiniteConfig(JSONNode _json)
|
||||
{
|
||||
return new ConstructionInfiniteConfig(_json);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重置消耗钻石
|
||||
/// </summary>
|
||||
public int ResetCost { get; private set; }
|
||||
/// <summary>
|
||||
/// 基础消耗钞票
|
||||
/// </summary>
|
||||
public int BasicCost { get; private set; }
|
||||
/// <summary>
|
||||
/// perfect的返还钞票百分比
|
||||
/// </summary>
|
||||
public float PerfectReturnPoint { get; private set; }
|
||||
/// <summary>
|
||||
/// 钞票消耗的倍率序列
|
||||
/// </summary>
|
||||
public System.Collections.Generic.List<float> CashMagList { get; private set; }
|
||||
/// <summary>
|
||||
/// 普通积分区间
|
||||
/// </summary>
|
||||
public System.Collections.Generic.List<int> GoodRankClamp { get; private set; }
|
||||
/// <summary>
|
||||
/// 优秀积分区间
|
||||
/// </summary>
|
||||
public System.Collections.Generic.List<int> FantasticRankClamp { get; private set; }
|
||||
/// <summary>
|
||||
/// 普通返还钞票百分比
|
||||
/// </summary>
|
||||
public float GoodReturnPoint { get; private set; }
|
||||
/// <summary>
|
||||
/// 优秀返还钞票百分比
|
||||
/// </summary>
|
||||
public float FantasticReturnPoint { get; private set; }
|
||||
/// <summary>
|
||||
/// 每次连击返还钞票
|
||||
/// </summary>
|
||||
public float ComboOnceReturnPoint { get; private set; }
|
||||
/// <summary>
|
||||
/// 返还钞票计算的连击上限
|
||||
/// </summary>
|
||||
public int ComboReturnMaxCount { get; private set; }
|
||||
|
||||
public const int __ID__ = 719729095;
|
||||
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 "{ "
|
||||
+ "ResetCost:" + ResetCost + ","
|
||||
+ "BasicCost:" + BasicCost + ","
|
||||
+ "PerfectReturnPoint:" + PerfectReturnPoint + ","
|
||||
+ "CashMagList:" + Bright.Common.StringUtil.CollectionToString(CashMagList) + ","
|
||||
+ "GoodRankClamp:" + Bright.Common.StringUtil.CollectionToString(GoodRankClamp) + ","
|
||||
+ "FantasticRankClamp:" + Bright.Common.StringUtil.CollectionToString(FantasticRankClamp) + ","
|
||||
+ "GoodReturnPoint:" + GoodReturnPoint + ","
|
||||
+ "FantasticReturnPoint:" + FantasticReturnPoint + ","
|
||||
+ "ComboOnceReturnPoint:" + ComboOnceReturnPoint + ","
|
||||
+ "ComboReturnMaxCount:" + ComboReturnMaxCount + ","
|
||||
+ "}";
|
||||
}
|
||||
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user