//------------------------------------------------------------------------------ // // 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 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(__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(__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(__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(__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); } /// /// 鱼编号 /// public readonly int FishNumber; /// /// 预制体名字 /// public readonly string PrefabFishResourcesPath; /// /// 出场音频 /// public readonly System.Collections.Generic.List ShowAudio; /// /// 移动音频 /// public readonly System.Collections.Generic.List MoveAudio; /// /// 死亡音效 1,2,3 /// public readonly System.Collections.Generic.List DieAudio; /// /// 爆奖音效 /// public readonly System.Collections.Generic.Dictionary DieGlodAduio; /// /// 生物层级 /// public readonly int Layer; /// /// 出场播报 /// public readonly string BoardText; /// /// 死亡特效资源路径 /// 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 + "," + "}"; } } }