备份CatanBuilding瘦身独立工程
This commit is contained in:
82
Assets/Scripts/Tables/TbAquariumConfig.cs
Normal file
82
Assets/Scripts/Tables/TbAquariumConfig.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
|
||||
{
|
||||
|
||||
public sealed partial class TbAquariumConfig
|
||||
{
|
||||
|
||||
private readonly AquariumConfig _data;
|
||||
|
||||
public TbAquariumConfig(JSONNode _json)
|
||||
{
|
||||
if(!_json.IsArray)
|
||||
{
|
||||
throw new SerializationException();
|
||||
}
|
||||
if (_json.Count != 1) throw new SerializationException("table mode=one, but size != 1");
|
||||
_data = AquariumConfig.DeserializeAquariumConfig(_json[0]);
|
||||
PostInit();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 特殊鱼列表,对应Item表主键
|
||||
/// </summary>
|
||||
public System.Collections.Generic.List<int> AquariumSpFishList => _data.AquariumSpFishList;
|
||||
/// <summary>
|
||||
/// 每次广告降低的时间
|
||||
/// </summary>
|
||||
public float AdAccelerate => _data.AdAccelerate;
|
||||
/// <summary>
|
||||
/// 第一次广告降低的时间
|
||||
/// </summary>
|
||||
public float AdAccelerateFirst => _data.AdAccelerateFirst;
|
||||
/// <summary>
|
||||
/// 每次广告消耗的钻石
|
||||
/// </summary>
|
||||
public int AdAccelerateDiamondCost => _data.AdAccelerateDiamondCost;
|
||||
/// <summary>
|
||||
/// 每次刷新周期可以看的广告最大次数
|
||||
/// </summary>
|
||||
public int AdMaxTime => _data.AdMaxTime;
|
||||
/// <summary>
|
||||
/// 每天最多能刷多少次
|
||||
/// </summary>
|
||||
public int RefreshTime => _data.RefreshTime;
|
||||
/// <summary>
|
||||
/// 变异的材质
|
||||
/// </summary>
|
||||
public string MutantMaterial => _data.MutantMaterial;
|
||||
/// <summary>
|
||||
/// 刺鱼时,可以选择随机玩家的次数
|
||||
/// </summary>
|
||||
public int RaidChangeTimes => _data.RaidChangeTimes;
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user