From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GardenCookingFoodRes.cs | 160 +++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs new file mode 100644 index 00000000..f25f0047 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenCookingFoodRes")] + [Serializable] + public class GardenCookingFoodRes : 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 = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(3, IsRequired = false, Name = "cooking_level", DataFormat = DataFormat.TwosComplement)] + public uint cooking_level + { + get + { + return this._cooking_level ?? 0u; + } + set + { + this._cooking_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooking_levelSpecified + { + get + { + return this._cooking_level != null; + } + set + { + bool flag = value == (this._cooking_level == null); + if (flag) + { + this._cooking_level = (value ? new uint?(this.cooking_level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "cooking_experiences", DataFormat = DataFormat.TwosComplement)] + public uint cooking_experiences + { + get + { + return this._cooking_experiences ?? 0u; + } + set + { + this._cooking_experiences = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooking_experiencesSpecified + { + get + { + return this._cooking_experiences != null; + } + set + { + bool flag = value == (this._cooking_experiences == null); + if (flag) + { + this._cooking_experiences = (value ? new uint?(this.cooking_experiences) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _items = new List(); + + private uint? _cooking_level; + + private uint? _cooking_experiences; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializecooking_level() + { + return this.cooking_levelSpecified; + } + + private void Resetcooking_level() + { + this.cooking_levelSpecified = false; + } + + private bool ShouldSerializecooking_experiences() + { + return this.cooking_experiencesSpecified; + } + + private void Resetcooking_experiences() + { + this.cooking_experiencesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0