61 lines
1.8 KiB
C#
61 lines
1.8 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 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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 子弹编号 末位1正常子弹 2双头蛋 3激光
|
|
/// </summary>
|
|
public readonly int BulletNumber;
|
|
/// <summary>
|
|
/// 预制体名字
|
|
/// </summary>
|
|
public readonly string PrefabBulletResourcesPath;
|
|
/// <summary>
|
|
/// 击中特效
|
|
/// </summary>
|
|
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 + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
}
|
|
|