//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
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);
}
///
/// 条件ID
///
public int Id { get; private set; }
///
/// 条件类型
///
public ConditionType Type { get; private set; }
///
/// 参数1
///
public long Param1 { get; private set; }
///
/// 参数2
///
public long Param2 { get; private set; }
///
/// 参数3
///
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 + ","
+ "}";
}
}
}