//------------------------------------------------------------------------------
//
// 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.EffectCfg
{
public sealed partial class DataEffect : Bright.Config.BeanBase
{
public DataEffect(JSONNode _json)
{
{ if(!_json["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _json["RoleID"]; }
{ if(!_json["PrefabPath"].IsString) { throw new SerializationException(); } PrefabPath = _json["PrefabPath"]; }
{ if(!_json["IsUIEffect"].IsBoolean) { throw new SerializationException(); } IsUIEffect = _json["IsUIEffect"]; }
{ if(!_json["NeedPreload"].IsBoolean) { throw new SerializationException(); } NeedPreload = _json["NeedPreload"]; }
{ if(!_json["ExistTime"].IsNumber) { throw new SerializationException(); } ExistTime = _json["ExistTime"]; }
PostInit();
}
public DataEffect(int RoleID, string PrefabPath, bool IsUIEffect, bool NeedPreload, float ExistTime )
{
this.RoleID = RoleID;
this.PrefabPath = PrefabPath;
this.IsUIEffect = IsUIEffect;
this.NeedPreload = NeedPreload;
this.ExistTime = ExistTime;
PostInit();
}
public static DataEffect DeserializeDataEffect(JSONNode _json)
{
return new EffectCfg.DataEffect(_json);
}
///
/// 配置用ID
///
public int RoleID { get; private set; }
///
/// 模型路径
///
public string PrefabPath { get; private set; }
///
/// 是否是UI特效
///
public bool IsUIEffect { get; private set; }
///
/// 是否需要预加载
///
public bool NeedPreload { get; private set; }
///
/// 期望存活时间
///
public float ExistTime { get; private set; }
public const int __ID__ = 562948566;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "RoleID:" + RoleID + ","
+ "PrefabPath:" + PrefabPath + ","
+ "IsUIEffect:" + IsUIEffect + ","
+ "NeedPreload:" + NeedPreload + ","
+ "ExistTime:" + ExistTime + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}