summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs62
1 files changed, 62 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs
new file mode 100644
index 00000000..f2c0566b
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs
@@ -0,0 +1,62 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "IBGiftIcon")]
+ [Serializable]
+ public class IBGiftIcon : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "status", DataFormat = DataFormat.Default)]
+ public bool status
+ {
+ get
+ {
+ return this._status ?? false;
+ }
+ set
+ {
+ this._status = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool statusSpecified
+ {
+ get
+ {
+ return this._status != null;
+ }
+ set
+ {
+ bool flag = value == (this._status == null);
+ if (flag)
+ {
+ this._status = (value ? new bool?(this.status) : null);
+ }
+ }
+ }
+
+ private bool? _status;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializestatus()
+ {
+ return this.statusSpecified;
+ }
+
+ private void Resetstatus()
+ {
+ this.statusSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}