summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs148
1 files changed, 148 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs
new file mode 100644
index 00000000..9c99426f
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs
@@ -0,0 +1,148 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "GardenFishInfoRes")]
+ [Serializable]
+ public class GardenFishInfoRes : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)]
+ public ErrorCode result
+ {
+ get
+ {
+ return this._result ?? ErrorCode.ERR_SUCCESS;
+ }
+ set
+ {
+ this._result = new ErrorCode?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool resultSpecified
+ {
+ get
+ {
+ return this._result != null;
+ }
+ set
+ {
+ bool flag = value == (this._result == null);
+ if (flag)
+ {
+ this._result = (value ? new ErrorCode?(this.result) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "fish_level", DataFormat = DataFormat.TwosComplement)]
+ public uint fish_level
+ {
+ get
+ {
+ return this._fish_level ?? 0u;
+ }
+ set
+ {
+ this._fish_level = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool fish_levelSpecified
+ {
+ get
+ {
+ return this._fish_level != null;
+ }
+ set
+ {
+ bool flag = value == (this._fish_level == null);
+ if (flag)
+ {
+ this._fish_level = (value ? new uint?(this.fish_level) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "experiences", DataFormat = DataFormat.TwosComplement)]
+ public uint experiences
+ {
+ get
+ {
+ return this._experiences ?? 0u;
+ }
+ set
+ {
+ this._experiences = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool experiencesSpecified
+ {
+ get
+ {
+ return this._experiences != null;
+ }
+ set
+ {
+ bool flag = value == (this._experiences == null);
+ if (flag)
+ {
+ this._experiences = (value ? new uint?(this.experiences) : null);
+ }
+ }
+ }
+
+ private ErrorCode? _result;
+
+ private uint? _fish_level;
+
+ private uint? _experiences;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeresult()
+ {
+ return this.resultSpecified;
+ }
+
+ private void Resetresult()
+ {
+ this.resultSpecified = false;
+ }
+
+ private bool ShouldSerializefish_level()
+ {
+ return this.fish_levelSpecified;
+ }
+
+ private void Resetfish_level()
+ {
+ this.fish_levelSpecified = false;
+ }
+
+ private bool ShouldSerializeexperiences()
+ {
+ return this.experiencesSpecified;
+ }
+
+ private void Resetexperiences()
+ {
+ this.experiencesSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}