73 lines
2.3 KiB
C#
73 lines
2.3 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 TurretResources : Luban.BeanBase
|
|
{
|
|
public TurretResources(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["turretNumber"].IsNumber) { throw new SerializationException(); } TurretNumber = _buf["turretNumber"]; }
|
|
{ if(!_buf["turretType"].IsNumber) { throw new SerializationException(); } TurretType = _buf["turretType"]; }
|
|
{ if(!_buf["prefabTurretResourcesPath"].IsString) { throw new SerializationException(); } PrefabTurretResourcesPath = _buf["prefabTurretResourcesPath"]; }
|
|
{ if(!_buf["animationType"].IsNumber) { throw new SerializationException(); } AnimationType = _buf["animationType"]; }
|
|
{ if(!_buf["attackAudio"].IsNumber) { throw new SerializationException(); } AttackAudio = _buf["attackAudio"]; }
|
|
}
|
|
|
|
public static TurretResources DeserializeTurretResources(JSONNode _buf)
|
|
{
|
|
return new TurretResources(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 炮台编号
|
|
/// </summary>
|
|
public readonly int TurretNumber;
|
|
/// <summary>
|
|
/// 类型 1普通炮台 2战神 3翅膀
|
|
/// </summary>
|
|
public readonly int TurretType;
|
|
/// <summary>
|
|
/// 预制体名字
|
|
/// </summary>
|
|
public readonly string PrefabTurretResourcesPath;
|
|
/// <summary>
|
|
/// 动画类型1spine 2animator 3 animation
|
|
/// </summary>
|
|
public readonly int AnimationType;
|
|
/// <summary>
|
|
/// 攻击音效
|
|
/// </summary>
|
|
public readonly int AttackAudio;
|
|
|
|
public const int __ID__ = -896453899;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "turretNumber:" + TurretNumber + ","
|
|
+ "turretType:" + TurretType + ","
|
|
+ "prefabTurretResourcesPath:" + PrefabTurretResourcesPath + ","
|
|
+ "animationType:" + AnimationType + ","
|
|
+ "attackAudio:" + AttackAudio + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
}
|
|
|