//------------------------------------------------------------------------------ // // 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 SupplyDropFbx : Bright.Config.BeanBase { public JSONNode json; public SupplyDropFbx(JSONNode _json) { { if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; } { if(!_json["Fbx"].IsString) { throw new SerializationException(); } Fbx = _json["Fbx"]; } { if(!_json["FxShow"].IsString) { throw new SerializationException(); } FxShow = _json["FxShow"]; } { if(!_json["AudioShow"].IsString) { throw new SerializationException(); } AudioShow = _json["AudioShow"]; } json = _json; PostInit(); } public SupplyDropFbx(int ItemID, string Fbx, string FxShow, string AudioShow ) { this.ItemID = ItemID; this.Fbx = Fbx; this.FxShow = FxShow; this.AudioShow = AudioShow; PostInit(); } public static SupplyDropFbx DeserializeSupplyDropFbx(JSONNode _json) { return new SupplyDropFbx(_json); } /// /// 对应ItemID /// public int ItemID { get; private set; } /// /// 对应prefab名称 /// public string Fbx { get; private set; } /// /// 展示动画时播放的特效 /// public string FxShow { get; private set; } /// /// 播放特效时,播放的音效 /// public string AudioShow { get; private set; } public const int __ID__ = 1495846334; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ItemID:" + ItemID + "," + "Fbx:" + Fbx + "," + "FxShow:" + FxShow + "," + "AudioShow:" + AudioShow + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }