//------------------------------------------------------------------------------ // // 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 BulletResources : Luban.BeanBase { public BulletResources(JSONNode _buf) { { if(!_buf["bulletNumber"].IsNumber) { throw new SerializationException(); } BulletNumber = _buf["bulletNumber"]; } { if(!_buf["prefabBulletResourcesPath"].IsString) { throw new SerializationException(); } PrefabBulletResourcesPath = _buf["prefabBulletResourcesPath"]; } { if(!_buf["attackFX"].IsNumber) { throw new SerializationException(); } AttackFX = _buf["attackFX"]; } } public static BulletResources DeserializeBulletResources(JSONNode _buf) { return new BulletResources(_buf); } /// /// 子弹编号 末位1正常子弹 2双头蛋 3激光 /// public readonly int BulletNumber; /// /// 预制体名字 /// public readonly string PrefabBulletResourcesPath; /// /// 击中特效 /// public readonly int AttackFX; public const int __ID__ = -1276660957; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "bulletNumber:" + BulletNumber + "," + "prefabBulletResourcesPath:" + PrefabBulletResourcesPath + "," + "attackFX:" + AttackFX + "," + "}"; } } }