//------------------------------------------------------------------------------ // // 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 BTask : Luban.BeanBase { public BTask(JSONNode _buf) { { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } { if(!_buf["Tasktype"].IsNumber) { throw new SerializationException(); } Tasktype = _buf["Tasktype"]; } { if(!_buf["Targettype"].IsNumber) { throw new SerializationException(); } Targettype = _buf["Targettype"]; } { if(!_buf["Targetid"].IsNumber) { throw new SerializationException(); } Targetid = _buf["Targetid"]; } { if(!_buf["Targetnumber"].IsNumber) { throw new SerializationException(); } Targetnumber = _buf["Targetnumber"]; } { if(!_buf["Describe"].IsNumber) { throw new SerializationException(); } Describe = _buf["Describe"]; } } public static BTask DeserializeBTask(JSONNode _buf) { return new BTask(_buf); } /// /// #ID /// public readonly int ID; /// /// 任务类型 /// public readonly int Tasktype; /// /// 目标类型 /// public readonly int Targettype; /// /// 目标ID /// public readonly int Targetid; /// /// 目标数量 /// public readonly int Targetnumber; /// /// 描述文字 /// public readonly int Describe; public const int __ID__ = 63551719; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "Tasktype:" + Tasktype + "," + "Targettype:" + Targettype + "," + "Targetid:" + Targetid + "," + "Targetnumber:" + Targetnumber + "," + "Describe:" + Describe + "," + "}"; } } }