NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/DataTable/UIInterfaceBannerGoToCfg/DataUIBanner.cs

78 lines
2.1 KiB
C#
Raw Normal View History

2023-10-19 15:00:19 +08:00
//------------------------------------------------------------------------------
// <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.UIInterfaceBannerGoToCfg
{
public sealed partial class DataUIBanner : Bright.Config.BeanBase
{
public DataUIBanner(JSONNode _json)
{
{ if(!_json["index"].IsNumber) { throw new SerializationException(); } Index = _json["index"]; }
{ if(!_json["BannerImgPath"].IsString) { throw new SerializationException(); } BannerImgPath = _json["BannerImgPath"]; }
{ if(!_json["type"].IsNumber) { throw new SerializationException(); } Type = _json["type"]; }
PostInit();
}
public DataUIBanner(int index, string BannerImgPath, int type )
{
this.Index = index;
this.BannerImgPath = BannerImgPath;
this.Type = type;
PostInit();
}
public static DataUIBanner DeserializeDataUIBanner(JSONNode _json)
{
return new UIInterfaceBannerGoToCfg.DataUIBanner(_json);
}
/// <summary>
/// 序号
/// </summary>
public int Index { get; private set; }
/// <summary>
/// 图片路径
/// </summary>
public string BannerImgPath { get; private set; }
/// <summary>
/// 跳转类型
/// </summary>
public int Type { get; private set; }
public const int __ID__ = 1023883208;
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 "{ "
+ "Index:" + Index + ","
+ "BannerImgPath:" + BannerImgPath + ","
+ "Type:" + Type + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}