summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs117
1 files changed, 117 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs b/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs
new file mode 100644
index 00000000..ff3e0898
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs
@@ -0,0 +1,117 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "LuckyActivity")]
+ [Serializable]
+ public class LuckyActivity : IExtensible
+ {
+ [ProtoMember(1, Name = "itemrecord", DataFormat = DataFormat.Default)]
+ public List<ItemRecord> itemrecord
+ {
+ get
+ {
+ return this._itemrecord;
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)]
+ public uint state
+ {
+ get
+ {
+ return this._state ?? 0u;
+ }
+ set
+ {
+ this._state = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool stateSpecified
+ {
+ get
+ {
+ return this._state != null;
+ }
+ set
+ {
+ bool flag = value == (this._state == null);
+ if (flag)
+ {
+ this._state = (value ? new uint?(this.state) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "ispay", DataFormat = DataFormat.Default)]
+ public bool ispay
+ {
+ get
+ {
+ return this._ispay ?? false;
+ }
+ set
+ {
+ this._ispay = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool ispaySpecified
+ {
+ get
+ {
+ return this._ispay != null;
+ }
+ set
+ {
+ bool flag = value == (this._ispay == null);
+ if (flag)
+ {
+ this._ispay = (value ? new bool?(this.ispay) : null);
+ }
+ }
+ }
+
+ private readonly List<ItemRecord> _itemrecord = new List<ItemRecord>();
+
+ private uint? _state;
+
+ private bool? _ispay;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializestate()
+ {
+ return this.stateSpecified;
+ }
+
+ private void Resetstate()
+ {
+ this.stateSpecified = false;
+ }
+
+ private bool ShouldSerializeispay()
+ {
+ return this.ispaySpecified;
+ }
+
+ private void Resetispay()
+ {
+ this.ispaySpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}