mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
更新编辑器MenuItem导表与导出协议
更新编辑器MenuItem导表与导出协议
This commit is contained in:
@@ -7,32 +7,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
using Bright.Serialization;
|
||||
using System.Collections.Generic;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
|
||||
namespace GameConfig.Battle
|
||||
{
|
||||
|
||||
{
|
||||
public sealed partial class BuffTriggleState : Bright.Config.BeanBase
|
||||
{
|
||||
public BuffTriggleState(JSONNode _json)
|
||||
public BuffTriggleState(ByteBuf _buf)
|
||||
{
|
||||
{ if(!_json["StateID"].IsNumber) { throw new SerializationException(); } StateID = (Battle.BuffStateID)_json["StateID"].AsInt; }
|
||||
{ if(!_json["StateParam"].IsNumber) { throw new SerializationException(); } StateParam = _json["StateParam"]; }
|
||||
StateID = (Battle.BuffStateID)_buf.ReadInt();
|
||||
StateParam = _buf.ReadFloat();
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public BuffTriggleState(Battle.BuffStateID StateID, float StateParam )
|
||||
public static BuffTriggleState DeserializeBuffTriggleState(ByteBuf _buf)
|
||||
{
|
||||
this.StateID = StateID;
|
||||
this.StateParam = StateParam;
|
||||
PostInit();
|
||||
}
|
||||
|
||||
public static BuffTriggleState DeserializeBuffTriggleState(JSONNode _json)
|
||||
{
|
||||
return new Battle.BuffTriggleState(_json);
|
||||
return new Battle.BuffTriggleState(_buf);
|
||||
}
|
||||
|
||||
public Battle.BuffStateID StateID { get; private set; }
|
||||
@@ -61,4 +51,5 @@ public sealed partial class BuffTriggleState : Bright.Config.BeanBase
|
||||
partial void PostInit();
|
||||
partial void PostResolve();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user