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/ItemRecord.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs new file mode 100644 index 00000000..4e2b2d4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs @@ -0,0 +1,148 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "ItemRecord")]
+ [Serializable]
+ public class ItemRecord : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)]
+ public uint itemID
+ {
+ get
+ {
+ return this._itemID ?? 0u;
+ }
+ set
+ {
+ this._itemID = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool itemIDSpecified
+ {
+ get
+ {
+ return this._itemID != null;
+ }
+ set
+ {
+ bool flag = value == (this._itemID == null);
+ if (flag)
+ {
+ this._itemID = (value ? new uint?(this.itemID) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "itemCount", DataFormat = DataFormat.TwosComplement)]
+ public uint itemCount
+ {
+ get
+ {
+ return this._itemCount ?? 0u;
+ }
+ set
+ {
+ this._itemCount = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool itemCountSpecified
+ {
+ get
+ {
+ return this._itemCount != null;
+ }
+ set
+ {
+ bool flag = value == (this._itemCount == null);
+ if (flag)
+ {
+ this._itemCount = (value ? new uint?(this.itemCount) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "isreceive", DataFormat = DataFormat.Default)]
+ public bool isreceive
+ {
+ get
+ {
+ return this._isreceive ?? false;
+ }
+ set
+ {
+ this._isreceive = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool isreceiveSpecified
+ {
+ get
+ {
+ return this._isreceive != null;
+ }
+ set
+ {
+ bool flag = value == (this._isreceive == null);
+ if (flag)
+ {
+ this._isreceive = (value ? new bool?(this.isreceive) : null);
+ }
+ }
+ }
+
+ private uint? _itemID;
+
+ private uint? _itemCount;
+
+ private bool? _isreceive;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeitemID()
+ {
+ return this.itemIDSpecified;
+ }
+
+ private void ResetitemID()
+ {
+ this.itemIDSpecified = false;
+ }
+
+ private bool ShouldSerializeitemCount()
+ {
+ return this.itemCountSpecified;
+ }
+
+ private void ResetitemCount()
+ {
+ this.itemCountSpecified = false;
+ }
+
+ private bool ShouldSerializeisreceive()
+ {
+ return this.isreceiveSpecified;
+ }
+
+ private void Resetisreceive()
+ {
+ this.isreceiveSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|