92 lines
2.8 KiB
C#
92 lines
2.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 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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 配置用ID
|
|
/// </summary>
|
|
public int RoleID { get; private set; }
|
|
/// <summary>
|
|
/// 模型路径
|
|
/// </summary>
|
|
public string PrefabPath { get; private set; }
|
|
/// <summary>
|
|
/// 是否是UI特效
|
|
/// </summary>
|
|
public bool IsUIEffect { get; private set; }
|
|
/// <summary>
|
|
/// 是否需要预加载
|
|
/// </summary>
|
|
public bool NeedPreload { get; private set; }
|
|
/// <summary>
|
|
/// 期望存活时间
|
|
/// </summary>
|
|
public float ExistTime { get; private set; }
|
|
|
|
public const int __ID__ = 562948566;
|
|
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 + ","
|
|
+ "PrefabPath:" + PrefabPath + ","
|
|
+ "IsUIEffect:" + IsUIEffect + ","
|
|
+ "NeedPreload:" + NeedPreload + ","
|
|
+ "ExistTime:" + ExistTime + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|