//------------------------------------------------------------------------------
//
// 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.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);
}
///
/// 配置用ID
///
public int RoleID { get; private set; }
///
/// 名字
///
public string Name { get; private set; }
///
/// 是否可被攻击
///
public bool 是否可被攻击 { get; private set; }
///
/// 占位的通行级别
///
public int StandCrossLevel { get; private set; }
///
/// 可通行级别
///
public int MoveCrossLevel { get; private set; }
///
/// 召唤物的模型路径
///
public string ModelPath { get; private set; }
///
/// 销毁音效id
///
public int DestroyAudioId { get; private set; }
///
/// 销毁特效id
///
public int DestroyEffectId { get; private set; }
///
/// 是否可被攻击
///
public bool CanBeAttack { get; private set; }
///
/// 召唤物存在时间
///
public float ExistTime { get; private set; }
///
/// 召唤物逻辑id
///
public int LogicId { get; private set; }
///
/// 描述
///
public string DESC { get; private set; }
public const int __ID__ = 1327230070;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func 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();
}
}