//------------------------------------------------------------------------------
//
// 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 Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
public sealed partial class MMTRodPack : Bright.Config.BeanBase
{
public JSONNode json;
public MMTRodPack(JSONNode _json)
{
{ if(!_json["OldPackID"].IsNumber) { throw new SerializationException(); } OldPackID = _json["OldPackID"]; }
{ if(!_json["NewPackID"].IsNumber) { throw new SerializationException(); } NewPackID = _json["NewPackID"]; }
json = _json;
PostInit();
}
public MMTRodPack(int OldPackID, int NewPackID )
{
this.OldPackID = OldPackID;
this.NewPackID = NewPackID;
PostInit();
}
public static MMTRodPack DeserializeMMTRodPack(JSONNode _json)
{
return new MMTRodPack(_json);
}
///
/// Pack表主键
///
public int OldPackID { get; private set; }
///
/// Pack表主键
///
public int NewPackID { get; private set; }
public const int __ID__ = -580972756;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "OldPackID:" + OldPackID + ","
+ "NewPackID:" + NewPackID + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}