summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs105
1 files changed, 105 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs
new file mode 100644
index 00000000..fe39c2f2
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs
@@ -0,0 +1,105 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "StcAchieveInfo")]
+ [Serializable]
+ public class StcAchieveInfo : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "achieveID", DataFormat = DataFormat.TwosComplement)]
+ public uint achieveID
+ {
+ get
+ {
+ return this._achieveID ?? 0u;
+ }
+ set
+ {
+ this._achieveID = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool achieveIDSpecified
+ {
+ get
+ {
+ return this._achieveID != null;
+ }
+ set
+ {
+ bool flag = value == (this._achieveID == null);
+ if (flag)
+ {
+ this._achieveID = (value ? new uint?(this.achieveID) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "rewardStatus", DataFormat = DataFormat.TwosComplement)]
+ public uint rewardStatus
+ {
+ get
+ {
+ return this._rewardStatus ?? 0u;
+ }
+ set
+ {
+ this._rewardStatus = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool rewardStatusSpecified
+ {
+ get
+ {
+ return this._rewardStatus != null;
+ }
+ set
+ {
+ bool flag = value == (this._rewardStatus == null);
+ if (flag)
+ {
+ this._rewardStatus = (value ? new uint?(this.rewardStatus) : null);
+ }
+ }
+ }
+
+ private uint? _achieveID;
+
+ private uint? _rewardStatus;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeachieveID()
+ {
+ return this.achieveIDSpecified;
+ }
+
+ private void ResetachieveID()
+ {
+ this.achieveIDSpecified = false;
+ }
+
+ private bool ShouldSerializerewardStatus()
+ {
+ return this.rewardStatusSpecified;
+ }
+
+ private void ResetrewardStatus()
+ {
+ this.rewardStatusSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}