141 lines
5.1 KiB
C#
141 lines
5.1 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 Bright.Serialization;
|
|
using System.Collections.Generic;
|
|
using SimpleJSON;
|
|
|
|
|
|
|
|
namespace cfg.SummonCfg
|
|
{
|
|
|
|
public sealed partial class DataSummon : Bright.Config.BeanBase
|
|
{
|
|
public DataSummon(JSONNode _json)
|
|
{
|
|
{ if(!_json["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _json["RoleID"]; }
|
|
{ if(!_json["Name"].IsString) { throw new SerializationException(); } Name = _json["Name"]; }
|
|
{ if(!_json["是否可被攻击"].IsBoolean) { throw new SerializationException(); } 是否可被攻击 = _json["是否可被攻击"]; }
|
|
{ if(!_json["StandCrossLevel"].IsNumber) { throw new SerializationException(); } StandCrossLevel = _json["StandCrossLevel"]; }
|
|
{ if(!_json["MoveCrossLevel"].IsNumber) { throw new SerializationException(); } MoveCrossLevel = _json["MoveCrossLevel"]; }
|
|
{ if(!_json["ModelPath"].IsString) { throw new SerializationException(); } ModelPath = _json["ModelPath"]; }
|
|
{ if(!_json["DestroyAudioId"].IsNumber) { throw new SerializationException(); } DestroyAudioId = _json["DestroyAudioId"]; }
|
|
{ if(!_json["DestroyEffectId"].IsNumber) { throw new SerializationException(); } DestroyEffectId = _json["DestroyEffectId"]; }
|
|
{ if(!_json["CanBeAttack"].IsBoolean) { throw new SerializationException(); } CanBeAttack = _json["CanBeAttack"]; }
|
|
{ if(!_json["ExistTime"].IsNumber) { throw new SerializationException(); } ExistTime = _json["ExistTime"]; }
|
|
{ if(!_json["LogicId"].IsNumber) { throw new SerializationException(); } LogicId = _json["LogicId"]; }
|
|
{ if(!_json["DESC"].IsString) { throw new SerializationException(); } DESC = _json["DESC"]; }
|
|
PostInit();
|
|
}
|
|
|
|
public DataSummon(int RoleID, string Name, bool 是否可被攻击, int StandCrossLevel, int MoveCrossLevel, string ModelPath, int DestroyAudioId, int DestroyEffectId, bool CanBeAttack, float ExistTime, int LogicId, string DESC )
|
|
{
|
|
this.RoleID = RoleID;
|
|
this.Name = Name;
|
|
this.是否可被攻击 = 是否可被攻击;
|
|
this.StandCrossLevel = StandCrossLevel;
|
|
this.MoveCrossLevel = MoveCrossLevel;
|
|
this.ModelPath = ModelPath;
|
|
this.DestroyAudioId = DestroyAudioId;
|
|
this.DestroyEffectId = DestroyEffectId;
|
|
this.CanBeAttack = CanBeAttack;
|
|
this.ExistTime = ExistTime;
|
|
this.LogicId = LogicId;
|
|
this.DESC = DESC;
|
|
PostInit();
|
|
}
|
|
|
|
public static DataSummon DeserializeDataSummon(JSONNode _json)
|
|
{
|
|
return new SummonCfg.DataSummon(_json);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 配置用ID
|
|
/// </summary>
|
|
public int RoleID { get; private set; }
|
|
/// <summary>
|
|
/// 名字
|
|
/// </summary>
|
|
public string Name { get; private set; }
|
|
/// <summary>
|
|
/// 是否可被攻击
|
|
/// </summary>
|
|
public bool 是否可被攻击 { get; private set; }
|
|
/// <summary>
|
|
/// 占位的通行级别
|
|
/// </summary>
|
|
public int StandCrossLevel { get; private set; }
|
|
/// <summary>
|
|
/// 可通行级别
|
|
/// </summary>
|
|
public int MoveCrossLevel { get; private set; }
|
|
/// <summary>
|
|
/// 召唤物的模型路径
|
|
/// </summary>
|
|
public string ModelPath { get; private set; }
|
|
/// <summary>
|
|
/// 销毁音效id
|
|
/// </summary>
|
|
public int DestroyAudioId { get; private set; }
|
|
/// <summary>
|
|
/// 销毁特效id
|
|
/// </summary>
|
|
public int DestroyEffectId { get; private set; }
|
|
/// <summary>
|
|
/// 是否可被攻击
|
|
/// </summary>
|
|
public bool CanBeAttack { get; private set; }
|
|
/// <summary>
|
|
/// 召唤物存在时间
|
|
/// </summary>
|
|
public float ExistTime { get; private set; }
|
|
/// <summary>
|
|
/// 召唤物逻辑id
|
|
/// </summary>
|
|
public int LogicId { get; private set; }
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
public string DESC { get; private set; }
|
|
|
|
public const int __ID__ = 1327230070;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
PostResolve();
|
|
}
|
|
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "RoleID:" + RoleID + ","
|
|
+ "Name:" + Name + ","
|
|
+ "是否可被攻击:" + 是否可被攻击 + ","
|
|
+ "StandCrossLevel:" + StandCrossLevel + ","
|
|
+ "MoveCrossLevel:" + MoveCrossLevel + ","
|
|
+ "ModelPath:" + ModelPath + ","
|
|
+ "DestroyAudioId:" + DestroyAudioId + ","
|
|
+ "DestroyEffectId:" + DestroyEffectId + ","
|
|
+ "CanBeAttack:" + CanBeAttack + ","
|
|
+ "ExistTime:" + ExistTime + ","
|
|
+ "LogicId:" + LogicId + ","
|
|
+ "DESC:" + DESC + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|