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

87 lines
2.4 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 Luban;
using SimpleJSON;
2023-08-22 19:08:45 +08:00
2023-11-01 15:03:24 +08:00
namespace cfg
2023-08-22 19:08:45 +08:00
{
public sealed partial class DataCondition : Luban.BeanBase
{
2025-05-22 18:57:44 +08:00
public JSONNode cacheJsonNode {get; private set;}
public DataCondition(JSONNode _buf)
2023-08-22 19:08:45 +08:00
{
2025-05-22 18:57:44 +08:00
cacheJsonNode = _buf;
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (ConditionType)_buf["Type"].AsInt; }
{ if(!_buf["Param1"].IsNumber) { throw new SerializationException(); } Param1 = _buf["Param1"]; }
{ if(!_buf["Param2"].IsNumber) { throw new SerializationException(); } Param2 = _buf["Param2"]; }
{ if(!_buf["Param3"].IsNumber) { throw new SerializationException(); } Param3 = _buf["Param3"]; }
2023-08-22 19:08:45 +08:00
}
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;
2023-08-22 19:08:45 +08:00
}
public static DataCondition DeserializeDataCondition(JSONNode _buf)
2023-08-22 19:08:45 +08:00
{
return new DataCondition(_buf);
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 ResolveRef(Tables tables)
2023-08-22 19:08:45 +08:00
{
}
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "Type:" + Type + ","
+ "Param1:" + Param1 + ","
+ "Param2:" + Param2 + ","
+ "Param3:" + Param3 + ","
+ "}";
}
}
2023-08-22 19:08:45 +08:00
}