diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs new file mode 100644 index 00000000..4eb1ba64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs @@ -0,0 +1,74 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "RollInfoRes")]
+ [Serializable]
+ public class RollInfoRes : IExtensible
+ {
+ [ProtoMember(1, Name = "info", DataFormat = DataFormat.Default)]
+ public List<RollInfo> info
+ {
+ get
+ {
+ return this._info;
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "errCode", DataFormat = DataFormat.TwosComplement)]
+ public ErrorCode errCode
+ {
+ get
+ {
+ return this._errCode ?? ErrorCode.ERR_SUCCESS;
+ }
+ set
+ {
+ this._errCode = new ErrorCode?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool errCodeSpecified
+ {
+ get
+ {
+ return this._errCode != null;
+ }
+ set
+ {
+ bool flag = value == (this._errCode == null);
+ if (flag)
+ {
+ this._errCode = (value ? new ErrorCode?(this.errCode) : null);
+ }
+ }
+ }
+
+ private readonly List<RollInfo> _info = new List<RollInfo>();
+
+ private ErrorCode? _errCode;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeerrCode()
+ {
+ return this.errCodeSpecified;
+ }
+
+ private void ReseterrCode()
+ {
+ this.errCodeSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|