//------------------------------------------------------------------------------
//
// 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 AquariumConfig : Bright.Config.BeanBase
{
public JSONNode json;
public AquariumConfig(JSONNode _json)
{
{ var __json0 = _json["AquariumSpFishList"]; if(!__json0.IsArray) { throw new SerializationException(); } AquariumSpFishList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } AquariumSpFishList.Add(__v0); } }
{ if(!_json["AdAccelerate"].IsNumber) { throw new SerializationException(); } AdAccelerate = _json["AdAccelerate"]; }
{ if(!_json["AdAccelerateFirst"].IsNumber) { throw new SerializationException(); } AdAccelerateFirst = _json["AdAccelerateFirst"]; }
{ if(!_json["AdAccelerateDiamondCost"].IsNumber) { throw new SerializationException(); } AdAccelerateDiamondCost = _json["AdAccelerateDiamondCost"]; }
{ if(!_json["AdMaxTime"].IsNumber) { throw new SerializationException(); } AdMaxTime = _json["AdMaxTime"]; }
{ if(!_json["RefreshTime"].IsNumber) { throw new SerializationException(); } RefreshTime = _json["RefreshTime"]; }
{ if(!_json["MutantMaterial"].IsString) { throw new SerializationException(); } MutantMaterial = _json["MutantMaterial"]; }
{ if(!_json["RaidChangeTimes"].IsNumber) { throw new SerializationException(); } RaidChangeTimes = _json["RaidChangeTimes"]; }
json = _json;
PostInit();
}
public AquariumConfig(System.Collections.Generic.List AquariumSpFishList, float AdAccelerate, float AdAccelerateFirst, int AdAccelerateDiamondCost, int AdMaxTime, int RefreshTime, string MutantMaterial, int RaidChangeTimes )
{
this.AquariumSpFishList = AquariumSpFishList;
this.AdAccelerate = AdAccelerate;
this.AdAccelerateFirst = AdAccelerateFirst;
this.AdAccelerateDiamondCost = AdAccelerateDiamondCost;
this.AdMaxTime = AdMaxTime;
this.RefreshTime = RefreshTime;
this.MutantMaterial = MutantMaterial;
this.RaidChangeTimes = RaidChangeTimes;
PostInit();
}
public static AquariumConfig DeserializeAquariumConfig(JSONNode _json)
{
return new AquariumConfig(_json);
}
///
/// 特殊鱼列表,对应Item表主键
///
public System.Collections.Generic.List AquariumSpFishList { get; private set; }
///
/// 每次广告降低的时间
///
public float AdAccelerate { get; private set; }
///
/// 第一次广告降低的时间
///
public float AdAccelerateFirst { get; private set; }
///
/// 每次广告消耗的钻石
///
public int AdAccelerateDiamondCost { get; private set; }
///
/// 每次刷新周期可以看的广告最大次数
///
public int AdMaxTime { get; private set; }
///
/// 每天最多能刷多少次
///
public int RefreshTime { get; private set; }
///
/// 变异的材质
///
public string MutantMaterial { get; private set; }
///
/// 刺鱼时,可以选择随机玩家的次数
///
public int RaidChangeTimes { get; private set; }
public const int __ID__ = -1587973363;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "AquariumSpFishList:" + Bright.Common.StringUtil.CollectionToString(AquariumSpFishList) + ","
+ "AdAccelerate:" + AdAccelerate + ","
+ "AdAccelerateFirst:" + AdAccelerateFirst + ","
+ "AdAccelerateDiamondCost:" + AdAccelerateDiamondCost + ","
+ "AdMaxTime:" + AdMaxTime + ","
+ "RefreshTime:" + RefreshTime + ","
+ "MutantMaterial:" + MutantMaterial + ","
+ "RaidChangeTimes:" + RaidChangeTimes + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}