//------------------------------------------------------------------------------
//
// 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 TbConstructionInfiniteConfig
{
private readonly ConstructionInfiniteConfig _data;
public TbConstructionInfiniteConfig(JSONNode _json)
{
if(!_json.IsArray)
{
throw new SerializationException();
}
if (_json.Count != 1) throw new SerializationException("table mode=one, but size != 1");
_data = ConstructionInfiniteConfig.DeserializeConstructionInfiniteConfig(_json[0]);
PostInit();
}
///
/// 重置消耗钻石
///
public int ResetCost => _data.ResetCost;
///
/// 基础消耗钞票
///
public int BasicCost => _data.BasicCost;
///
/// perfect的返还钞票百分比
///
public float PerfectReturnPoint => _data.PerfectReturnPoint;
///
/// 钞票消耗的倍率序列
///
public System.Collections.Generic.List CashMagList => _data.CashMagList;
///
/// 普通积分区间
///
public System.Collections.Generic.List GoodRankClamp => _data.GoodRankClamp;
///
/// 优秀积分区间
///
public System.Collections.Generic.List FantasticRankClamp => _data.FantasticRankClamp;
///
/// 普通返还钞票百分比
///
public float GoodReturnPoint => _data.GoodReturnPoint;
///
/// 优秀返还钞票百分比
///
public float FantasticReturnPoint => _data.FantasticReturnPoint;
///
/// 每次连击返还钞票
///
public float ComboOnceReturnPoint => _data.ComboOnceReturnPoint;
///
/// 返还钞票计算的连击上限
///
public int ComboReturnMaxCount => _data.ComboReturnMaxCount;
public void Resolve(Dictionary _tables)
{
_data.Resolve(_tables);
PostResolve();
}
public void TranslateText(System.Func translator)
{
_data.TranslateText(translator);
}
partial void PostInit();
partial void PostResolve();
}
}