更新编辑器MenuItem导表与导出协议

更新编辑器MenuItem导表与导出协议
This commit is contained in:
ALEXTANGXIAO
2023-07-29 00:03:54 +08:00
parent 30192d52cf
commit 98dcb80942
29 changed files with 217 additions and 1018 deletions

View File

@@ -7,32 +7,22 @@
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace GameConfig.item
{
{
public sealed partial class ItemExchange : Bright.Config.BeanBase
{
public ItemExchange(JSONNode _json)
public ItemExchange(ByteBuf _buf)
{
{ if(!_json["id"].IsNumber) { throw new SerializationException(); } Id = _json["id"]; }
{ if(!_json["num"].IsNumber) { throw new SerializationException(); } Num = _json["num"]; }
Id = _buf.ReadInt();
Num = _buf.ReadInt();
PostInit();
}
public ItemExchange(int id, int num )
public static ItemExchange DeserializeItemExchange(ByteBuf _buf)
{
this.Id = id;
this.Num = num;
PostInit();
}
public static ItemExchange DeserializeItemExchange(JSONNode _json)
{
return new item.ItemExchange(_json);
return new item.ItemExchange(_buf);
}
/// <summary>
@@ -67,4 +57,5 @@ public sealed partial class ItemExchange : Bright.Config.BeanBase
partial void PostInit();
partial void PostResolve();
}
}
}