diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs new file mode 100644 index 00000000..bd8c8068 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs @@ -0,0 +1,148 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "CommendFirstPassRes")]
+ [Serializable]
+ public class CommendFirstPassRes : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)]
+ public ErrorCode error
+ {
+ get
+ {
+ return this._error ?? ErrorCode.ERR_SUCCESS;
+ }
+ set
+ {
+ this._error = new ErrorCode?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool errorSpecified
+ {
+ get
+ {
+ return this._error != null;
+ }
+ set
+ {
+ bool flag = value == (this._error == null);
+ if (flag)
+ {
+ this._error = (value ? new ErrorCode?(this.error) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "commendNum", DataFormat = DataFormat.TwosComplement)]
+ public int commendNum
+ {
+ get
+ {
+ return this._commendNum ?? 0;
+ }
+ set
+ {
+ this._commendNum = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool commendNumSpecified
+ {
+ get
+ {
+ return this._commendNum != null;
+ }
+ set
+ {
+ bool flag = value == (this._commendNum == null);
+ if (flag)
+ {
+ this._commendNum = (value ? new int?(this.commendNum) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "starLevel", DataFormat = DataFormat.TwosComplement)]
+ public int starLevel
+ {
+ get
+ {
+ return this._starLevel ?? 0;
+ }
+ set
+ {
+ this._starLevel = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool starLevelSpecified
+ {
+ get
+ {
+ return this._starLevel != null;
+ }
+ set
+ {
+ bool flag = value == (this._starLevel == null);
+ if (flag)
+ {
+ this._starLevel = (value ? new int?(this.starLevel) : null);
+ }
+ }
+ }
+
+ private ErrorCode? _error;
+
+ private int? _commendNum;
+
+ private int? _starLevel;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeerror()
+ {
+ return this.errorSpecified;
+ }
+
+ private void Reseterror()
+ {
+ this.errorSpecified = false;
+ }
+
+ private bool ShouldSerializecommendNum()
+ {
+ return this.commendNumSpecified;
+ }
+
+ private void ResetcommendNum()
+ {
+ this.commendNumSpecified = false;
+ }
+
+ private bool ShouldSerializestarLevel()
+ {
+ return this.starLevelSpecified;
+ }
+
+ private void ResetstarLevel()
+ {
+ this.starLevelSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|