diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs | 73 |
1 files changed, 73 insertions, 0 deletions
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<Buff> buffs
+ {
+ get
+ {
+ return this._buffs;
+ }
+ }
+
+ [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)]
+ public List<BuffItem> 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<Buff> _buffs = new List<Buff>();
+
+ private readonly List<BuffItem> _items = new List<BuffItem>();
+
+ private STransformBuff _transbuff = null;
+
+ private STransformBuff _smallbuff = null;
+
+ private IExtension extensionObject;
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|