From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs new file mode 100644 index 00000000..5724facb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SBuffRecord")] + [Serializable] + public class SBuffRecord : IExtensible + { + [ProtoMember(1, Name = "buffs", DataFormat = DataFormat.Default)] + public List buffs + { + get + { + return this._buffs; + } + } + + [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(3, IsRequired = false, Name = "transbuff", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public STransformBuff transbuff + { + get + { + return this._transbuff; + } + set + { + this._transbuff = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "smallbuff", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public STransformBuff smallbuff + { + get + { + return this._smallbuff; + } + set + { + this._smallbuff = value; + } + } + + private readonly List _buffs = new List(); + + private readonly List _items = new List(); + + private STransformBuff _transbuff = null; + + private STransformBuff _smallbuff = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0