78 lines
2.1 KiB
C#
78 lines
2.1 KiB
C#
//------------------------------------------------------------------------------
|
|
// <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 GlobalConfig
|
|
{
|
|
|
|
private readonly DataGlobalConfig _data;
|
|
|
|
public GlobalConfig(JSONNode _json)
|
|
{
|
|
if(!_json.IsArray)
|
|
{
|
|
throw new SerializationException();
|
|
}
|
|
if (_json.Count != 1) throw new SerializationException("table mode=one, but size != 1");
|
|
_data = DataGlobalConfig.DeserializeDataGlobalConfig(_json[0]);
|
|
PostInit();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 英雄经验池道具id
|
|
/// </summary>
|
|
public int HeroExpItem => _data.HeroExpItem;
|
|
/// <summary>
|
|
/// 道具默认最大上限
|
|
/// </summary>
|
|
public int ItemMaxDefault => _data.ItemMaxDefault;
|
|
/// <summary>
|
|
/// 任务版本号
|
|
/// </summary>
|
|
public int TaskVer => _data.TaskVer;
|
|
/// <summary>
|
|
/// 被压制时的buffIds
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> SuppressBuffIds => _data.SuppressBuffIds;
|
|
/// <summary>
|
|
/// 逃跑时的buffIds
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> RetreatBuffIds => _data.RetreatBuffIds;
|
|
/// <summary>
|
|
/// 战斗数值规则优化_0813 中需求的参数n
|
|
/// </summary>
|
|
public float FPN => _data.FPN;
|
|
/// <summary>
|
|
/// 战斗数值规则优化_0813 中需求的参数K
|
|
/// </summary>
|
|
public float FPK => _data.FPK;
|
|
|
|
public void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
_data.Resolve(_tables);
|
|
PostResolve();
|
|
}
|
|
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
_data.TranslateText(translator);
|
|
}
|
|
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
|
|
} |