summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs128
1 files changed, 128 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs
new file mode 100644
index 00000000..8a780a2f
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs
@@ -0,0 +1,128 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "FetchPlantInfoRes")]
+ [Serializable]
+ public class FetchPlantInfoRes : 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, Name = "plant_info", DataFormat = DataFormat.Default)]
+ public List<PlantInfo> plant_info
+ {
+ get
+ {
+ return this._plant_info;
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "sprite_id", DataFormat = DataFormat.TwosComplement)]
+ public uint sprite_id
+ {
+ get
+ {
+ return this._sprite_id ?? 0u;
+ }
+ set
+ {
+ this._sprite_id = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool sprite_idSpecified
+ {
+ get
+ {
+ return this._sprite_id != null;
+ }
+ set
+ {
+ bool flag = value == (this._sprite_id == null);
+ if (flag)
+ {
+ this._sprite_id = (value ? new uint?(this.sprite_id) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)]
+ public List<uint> farmland_id
+ {
+ get
+ {
+ return this._farmland_id;
+ }
+ }
+
+ private ErrorCode? _result;
+
+ private readonly List<PlantInfo> _plant_info = new List<PlantInfo>();
+
+ private uint? _sprite_id;
+
+ private readonly List<uint> _farmland_id = new List<uint>();
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeresult()
+ {
+ return this.resultSpecified;
+ }
+
+ private void Resetresult()
+ {
+ this.resultSpecified = false;
+ }
+
+ private bool ShouldSerializesprite_id()
+ {
+ return this.sprite_idSpecified;
+ }
+
+ private void Resetsprite_id()
+ {
+ this.sprite_idSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}