NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/GenCode/Luban/DataTable/DataCondition.cs

92 lines
2.6 KiB
C#
Raw Normal View History

2023-08-22 19:08:45 +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;
2023-11-01 15:03:24 +08:00
namespace cfg
2023-08-22 19:08:45 +08:00
{
2023-11-01 15:03:24 +08:00
public sealed partial class DataCondition : Bright.Config.BeanBase
2023-08-22 19:08:45 +08:00
{
2023-11-01 15:03:24 +08:00
public DataCondition(JSONNode _json)
2023-08-22 19:08:45 +08:00
{
{ if(!_json["Id"].IsNumber) { throw new SerializationException(); } Id = _json["Id"]; }
2023-11-01 15:21:28 +08:00
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = (ConditionType)_json["Type"].AsInt; }
2023-08-22 19:08:45 +08:00
{ if(!_json["Param1"].IsNumber) { throw new SerializationException(); } Param1 = _json["Param1"]; }
{ if(!_json["Param2"].IsNumber) { throw new SerializationException(); } Param2 = _json["Param2"]; }
{ if(!_json["Param3"].IsNumber) { throw new SerializationException(); } Param3 = _json["Param3"]; }
PostInit();
}
public DataCondition(int Id, ConditionType Type, long Param1, long Param2, int Param3 )
2023-08-22 19:08:45 +08:00
{
this.Id = Id;
this.Type = Type;
this.Param1 = Param1;
this.Param2 = Param2;
this.Param3 = Param3;
PostInit();
}
2023-11-01 15:03:24 +08:00
public static DataCondition DeserializeDataCondition(JSONNode _json)
2023-08-22 19:08:45 +08:00
{
2023-11-01 15:03:24 +08:00
return new DataCondition(_json);
2023-08-22 19:08:45 +08:00
}
/// <summary>
2024-01-15 17:09:46 +08:00
/// 条件ID
2023-08-22 19:08:45 +08:00
/// </summary>
public int Id { get; private set; }
/// <summary>
2024-01-15 17:09:46 +08:00
/// 条件类型
2023-08-22 19:08:45 +08:00
/// </summary>
2023-11-01 15:21:28 +08:00
public ConditionType Type { get; private set; }
2023-08-22 19:08:45 +08:00
/// <summary>
/// 参数1
/// </summary>
public long Param1 { get; private set; }
2023-08-22 19:08:45 +08:00
/// <summary>
/// 参数2
/// </summary>
public long Param2 { get; private set; }
2023-08-22 19:08:45 +08:00
/// <summary>
/// 参数3
/// </summary>
public int Param3 { get; private set; }
2023-11-01 15:03:24 +08:00
public const int __ID__ = -1867658127;
2023-08-22 19:08:45 +08:00
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 "{ "
+ "Id:" + Id + ","
+ "Type:" + Type + ","
+ "Param1:" + Param1 + ","
+ "Param2:" + Param2 + ","
+ "Param3:" + Param3 + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}