Files
MinFt/Client/Assets/Scripts/Tables/AquariumEgg.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

133 lines
6.6 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 AquariumEgg : Bright.Config.BeanBase
{
public JSONNode json;
public AquariumEgg(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Name"]["key"].IsString) { throw new SerializationException(); } Name_l10n_key = _json["Name"]["key"]; if(!_json["Name"]["text"].IsString) { throw new SerializationException(); } Name = _json["Name"]["text"]; }
{ if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; }
{ if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; }
{ if(!_json["Prefab"].IsString) { throw new SerializationException(); } Prefab = _json["Prefab"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ var __json0 = _json["HatchTime"]; if(!__json0.IsArray) { throw new SerializationException(); } HatchTime = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } HatchTime.Add(__v0); } }
{ if(!_json["BreakReward"].IsNumber) { throw new SerializationException(); } BreakReward = _json["BreakReward"]; }
{ var __json0 = _json["HatchFishQuality"]; if(!__json0.IsArray) { throw new SerializationException(); } HatchFishQuality = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } HatchFishQuality.Add(__v0); } }
{ var __json0 = _json["HatchFishQualityProb"]; if(!__json0.IsArray) { throw new SerializationException(); } HatchFishQualityProb = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } HatchFishQualityProb.Add(__v0); } }
{ var __json0 = _json["HatchFishQuantity"]; if(!__json0.IsArray) { throw new SerializationException(); } HatchFishQuantity = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } HatchFishQuantity.Add(__v0); } }
{ var __json0 = _json["HatchFishQuantityProb"]; if(!__json0.IsArray) { throw new SerializationException(); } HatchFishQuantityProb = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } HatchFishQuantityProb.Add(__v0); } }
json = _json;
PostInit();
}
public AquariumEgg(int ID, string Name, int Quality, float Weight, string Prefab, string Icon, System.Collections.Generic.List<float> HatchTime, int BreakReward, System.Collections.Generic.List<int> HatchFishQuality, System.Collections.Generic.List<int> HatchFishQualityProb, System.Collections.Generic.List<int> HatchFishQuantity, System.Collections.Generic.List<int> HatchFishQuantityProb )
{
this.ID = ID;
this.Name = Name;
this.Quality = Quality;
this.Weight = Weight;
this.Prefab = Prefab;
this.Icon = Icon;
this.HatchTime = HatchTime;
this.BreakReward = BreakReward;
this.HatchFishQuality = HatchFishQuality;
this.HatchFishQualityProb = HatchFishQualityProb;
this.HatchFishQuantity = HatchFishQuantity;
this.HatchFishQuantityProb = HatchFishQuantityProb;
PostInit();
}
public static AquariumEgg DeserializeAquariumEgg(JSONNode _json)
{
return new AquariumEgg(_json);
}
/// <summary>
/// 编号
/// </summary>
public int ID { get; private set; }
/// <summary>
/// 蛋的名称
/// </summary>
public string Name { get; private set; }
public string Name_l10n_key { get; }
/// <summary>
/// 品质
/// </summary>
public int Quality { get; private set; }
/// <summary>
/// 摇蛋权重
/// </summary>
public float Weight { get; private set; }
/// <summary>
/// 蛋的资源
/// </summary>
public string Prefab { get; private set; }
/// <summary>
/// 蛋的图标
/// </summary>
public string Icon { get; private set; }
/// <summary>
/// 孵化时间
/// </summary>
public System.Collections.Generic.List<float> HatchTime { get; private set; }
/// <summary>
/// 击碎奖励
/// </summary>
public int BreakReward { get; private set; }
public System.Collections.Generic.List<int> HatchFishQuality { get; private set; }
public System.Collections.Generic.List<int> HatchFishQualityProb { get; private set; }
public System.Collections.Generic.List<int> HatchFishQuantity { get; private set; }
public System.Collections.Generic.List<int> HatchFishQuantityProb { get; private set; }
public const int __ID__ = 174826522;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
Name = translator(Name_l10n_key, Name);
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Name:" + Name + ","
+ "Quality:" + Quality + ","
+ "Weight:" + Weight + ","
+ "Prefab:" + Prefab + ","
+ "Icon:" + Icon + ","
+ "HatchTime:" + Bright.Common.StringUtil.CollectionToString(HatchTime) + ","
+ "BreakReward:" + BreakReward + ","
+ "HatchFishQuality:" + Bright.Common.StringUtil.CollectionToString(HatchFishQuality) + ","
+ "HatchFishQualityProb:" + Bright.Common.StringUtil.CollectionToString(HatchFishQualityProb) + ","
+ "HatchFishQuantity:" + Bright.Common.StringUtil.CollectionToString(HatchFishQuantity) + ","
+ "HatchFishQuantityProb:" + Bright.Common.StringUtil.CollectionToString(HatchFishQuantityProb) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}