Files
2026-04-28 01:53:41 +08:00

97 lines
4.5 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 Luban;
using SimpleJSON;
namespace cfg
{
public sealed partial class FishResources : Luban.BeanBase
{
public FishResources(JSONNode _buf)
{
{ if(!_buf["fishNumber"].IsNumber) { throw new SerializationException(); } FishNumber = _buf["fishNumber"]; }
{ if(!_buf["prefabFishResourcesPath"].IsString) { throw new SerializationException(); } PrefabFishResourcesPath = _buf["prefabFishResourcesPath"]; }
{ var __json0 = _buf["showAudio"]; if(!__json0.IsArray) { throw new SerializationException(); } ShowAudio = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ShowAudio.Add(__v0); } }
{ var __json0 = _buf["moveAudio"]; if(!__json0.IsArray) { throw new SerializationException(); } MoveAudio = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MoveAudio.Add(__v0); } }
{ var __json0 = _buf["dieAudio"]; if(!__json0.IsArray) { throw new SerializationException(); } DieAudio = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DieAudio.Add(__v0); } }
{ var __json0 = _buf["dieGlodAduio"]; if(!__json0.IsArray) { throw new SerializationException(); } DieGlodAduio = new System.Collections.Generic.Dictionary<string, int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string _k0; { if(!__e0[0].IsString) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } DieGlodAduio.Add(_k0, _v0); } }
{ if(!_buf["layer"].IsNumber) { throw new SerializationException(); } Layer = _buf["layer"]; }
{ if(!_buf["boardText"].IsString) { throw new SerializationException(); } BoardText = _buf["boardText"]; }
{ if(!_buf["dieEffectAssets"].IsString) { throw new SerializationException(); } DieEffectAssets = _buf["dieEffectAssets"]; }
}
public static FishResources DeserializeFishResources(JSONNode _buf)
{
return new FishResources(_buf);
}
/// <summary>
/// 鱼编号
/// </summary>
public readonly int FishNumber;
/// <summary>
/// 预制体名字
/// </summary>
public readonly string PrefabFishResourcesPath;
/// <summary>
/// 出场音频
/// </summary>
public readonly System.Collections.Generic.List<int> ShowAudio;
/// <summary>
/// 移动音频
/// </summary>
public readonly System.Collections.Generic.List<int> MoveAudio;
/// <summary>
/// 死亡音效 1,2,3
/// </summary>
public readonly System.Collections.Generic.List<int> DieAudio;
/// <summary>
/// 爆奖音效
/// </summary>
public readonly System.Collections.Generic.Dictionary<string, int> DieGlodAduio;
/// <summary>
/// 生物层级
/// </summary>
public readonly int Layer;
/// <summary>
/// 出场播报
/// </summary>
public readonly string BoardText;
/// <summary>
/// 死亡特效资源路径
/// </summary>
public readonly string DieEffectAssets;
public const int __ID__ = -2122204531;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "fishNumber:" + FishNumber + ","
+ "prefabFishResourcesPath:" + PrefabFishResourcesPath + ","
+ "showAudio:" + Luban.StringUtil.CollectionToString(ShowAudio) + ","
+ "moveAudio:" + Luban.StringUtil.CollectionToString(MoveAudio) + ","
+ "dieAudio:" + Luban.StringUtil.CollectionToString(DieAudio) + ","
+ "dieGlodAduio:" + Luban.StringUtil.CollectionToString(DieGlodAduio) + ","
+ "layer:" + Layer + ","
+ "boardText:" + BoardText + ","
+ "dieEffectAssets:" + DieEffectAssets + ","
+ "}";
}
}
}