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

87 lines
2.4 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 Luban;
using SimpleJSON;
namespace cfg
{
public sealed partial class DataCondition : Luban.BeanBase
{
public JSONNode cacheJsonNode {get; private set;}
public DataCondition(JSONNode _buf)
{
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"]; }
}
public DataCondition(int Id, ConditionType Type, long Param1, long Param2, int Param3 )
{
this.Id = Id;
this.Type = Type;
this.Param1 = Param1;
this.Param2 = Param2;
this.Param3 = Param3;
}
public static DataCondition DeserializeDataCondition(JSONNode _buf)
{
return new DataCondition(_buf);
}
/// <summary>
/// 条件ID
/// </summary>
public int Id { get; private set; }
/// <summary>
/// 条件类型
/// </summary>
public ConditionType Type { get; private set; }
/// <summary>
/// 参数1
/// </summary>
public long Param1 { get; private set; }
/// <summary>
/// 参数2
/// </summary>
public long Param2 { get; private set; }
/// <summary>
/// 参数3
/// </summary>
public int Param3 { get; private set; }
public const int __ID__ = -1867658127;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "Type:" + Type + ","
+ "Param1:" + Param1 + ","
+ "Param2:" + Param2 + ","
+ "Param3:" + Param3 + ","
+ "}";
}
}
}