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/GmfOneBattleEnd.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs new file mode 100644 index 00000000..9a55af93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs @@ -0,0 +1,126 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "GmfOneBattleEnd")]
+ [Serializable]
+ public class GmfOneBattleEnd : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "reason", DataFormat = DataFormat.TwosComplement)]
+ public GMFFailReason reason
+ {
+ get
+ {
+ return this._reason ?? GMFFailReason.GMF_FAIL_NONE;
+ }
+ set
+ {
+ this._reason = new GMFFailReason?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool reasonSpecified
+ {
+ get
+ {
+ return this._reason != null;
+ }
+ set
+ {
+ bool flag = value == (this._reason == null);
+ if (flag)
+ {
+ this._reason = (value ? new GMFFailReason?(this.reason) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "winrole", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public GmfRoleBrief winrole
+ {
+ get
+ {
+ return this._winrole;
+ }
+ set
+ {
+ this._winrole = value;
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "loselrole", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public GmfRoleBrief loselrole
+ {
+ get
+ {
+ return this._loselrole;
+ }
+ set
+ {
+ this._loselrole = value;
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "winguild", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public GmfGuildBrief winguild
+ {
+ get
+ {
+ return this._winguild;
+ }
+ set
+ {
+ this._winguild = value;
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "loseguild", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public GmfGuildBrief loseguild
+ {
+ get
+ {
+ return this._loseguild;
+ }
+ set
+ {
+ this._loseguild = value;
+ }
+ }
+
+ private GMFFailReason? _reason;
+
+ private GmfRoleBrief _winrole = null;
+
+ private GmfRoleBrief _loselrole = null;
+
+ private GmfGuildBrief _winguild = null;
+
+ private GmfGuildBrief _loseguild = null;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializereason()
+ {
+ return this.reasonSpecified;
+ }
+
+ private void Resetreason()
+ {
+ this.reasonSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|