Files
back_cantanBuilding/Assets/Scripts/Tables/AquariumConfig.cs
2026-05-26 16:15:54 +08:00

118 lines
4.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//------------------------------------------------------------------------------
// <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 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<int>(__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<int> 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);
}
/// <summary>
/// 特殊鱼列表对应Item表主键
/// </summary>
public System.Collections.Generic.List<int> AquariumSpFishList { get; private set; }
/// <summary>
/// 每次广告降低的时间
/// </summary>
public float AdAccelerate { get; private set; }
/// <summary>
/// 第一次广告降低的时间
/// </summary>
public float AdAccelerateFirst { get; private set; }
/// <summary>
/// 每次广告消耗的钻石
/// </summary>
public int AdAccelerateDiamondCost { get; private set; }
/// <summary>
/// 每次刷新周期可以看的广告最大次数
/// </summary>
public int AdMaxTime { get; private set; }
/// <summary>
/// 每天最多能刷多少次
/// </summary>
public int RefreshTime { get; private set; }
/// <summary>
/// 变异的材质
/// </summary>
public string MutantMaterial { get; private set; }
/// <summary>
/// 刺鱼时,可以选择随机玩家的次数
/// </summary>
public int RaidChangeTimes { get; private set; }
public const int __ID__ = -1587973363;
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 "{ "
+ "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();
}
}