From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GetActivityChestRes.cs | 128 +++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs new file mode 100644 index 00000000..9e72e2d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetActivityChestRes")] + [Serializable] + public class GetActivityChestRes : 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 = "ChestGetInfo", DataFormat = DataFormat.TwosComplement)] + public uint ChestGetInfo + { + get + { + return this._ChestGetInfo ?? 0u; + } + set + { + this._ChestGetInfo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ChestGetInfoSpecified + { + get + { + return this._ChestGetInfo != null; + } + set + { + bool flag = value == (this._ChestGetInfo == null); + if (flag) + { + this._ChestGetInfo = (value ? new uint?(this.ChestGetInfo) : null); + } + } + } + + [ProtoMember(3, Name = "ItemId", DataFormat = DataFormat.TwosComplement)] + public List ItemId + { + get + { + return this._ItemId; + } + } + + [ProtoMember(4, Name = "ItemCount", DataFormat = DataFormat.TwosComplement)] + public List ItemCount + { + get + { + return this._ItemCount; + } + } + + private ErrorCode? _ErrorCode; + + private uint? _ChestGetInfo; + + private readonly List _ItemId = new List(); + + private readonly List _ItemCount = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializeChestGetInfo() + { + return this.ChestGetInfoSpecified; + } + + private void ResetChestGetInfo() + { + this.ChestGetInfoSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0