diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs | 128 |
1 files changed, 128 insertions, 0 deletions
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<uint> ItemId
+ {
+ get
+ {
+ return this._ItemId;
+ }
+ }
+
+ [ProtoMember(4, Name = "ItemCount", DataFormat = DataFormat.TwosComplement)]
+ public List<uint> ItemCount
+ {
+ get
+ {
+ return this._ItemCount;
+ }
+ }
+
+ private ErrorCode? _ErrorCode;
+
+ private uint? _ChestGetInfo;
+
+ private readonly List<uint> _ItemId = new List<uint>();
+
+ private readonly List<uint> _ItemCount = new List<uint>();
+
+ 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);
+ }
+ }
+}
|