From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GetFlowerLeftTimeRes.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs new file mode 100644 index 00000000..569c19ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerLeftTimeRes")] + [Serializable] + public class GetFlowerLeftTimeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public int leftTime + { + get + { + return this._leftTime ?? 0; + } + set + { + this._leftTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new int?(this.leftTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "canGet", DataFormat = DataFormat.Default)] + public bool canGet + { + get + { + return this._canGet ?? false; + } + set + { + this._canGet = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canGetSpecified + { + get + { + return this._canGet != null; + } + set + { + bool flag = value == (this._canGet == null); + if (flag) + { + this._canGet = (value ? new bool?(this.canGet) : null); + } + } + } + + private ErrorCode? _errorCode; + + private int? _leftTime; + + private bool? _canGet; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + private bool ShouldSerializecanGet() + { + return this.canGetSpecified; + } + + private void ResetcanGet() + { + this.canGetSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0