From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/GprAllFightEnd.cs | 137 +++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs b/Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs new file mode 100644 index 00000000..92df84c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs @@ -0,0 +1,137 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GprAllFightEnd")] + [Serializable] + public class GprAllFightEnd : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "winguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief winguild + { + get + { + return this._winguild; + } + set + { + this._winguild = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "loseguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief loseguild + { + get + { + return this._loseguild; + } + set + { + this._loseguild = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "winscore", DataFormat = DataFormat.TwosComplement)] + public uint winscore + { + get + { + return this._winscore ?? 0u; + } + set + { + this._winscore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winscoreSpecified + { + get + { + return this._winscore != null; + } + set + { + bool flag = value == (this._winscore == null); + if (flag) + { + this._winscore = (value ? new uint?(this.winscore) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "losescore", DataFormat = DataFormat.TwosComplement)] + public uint losescore + { + get + { + return this._losescore ?? 0u; + } + set + { + this._losescore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losescoreSpecified + { + get + { + return this._losescore != null; + } + set + { + bool flag = value == (this._losescore == null); + if (flag) + { + this._losescore = (value ? new uint?(this.losescore) : null); + } + } + } + + private GmfGuildBrief _winguild = null; + + private GmfGuildBrief _loseguild = null; + + private uint? _winscore; + + private uint? _losescore; + + private IExtension extensionObject; + + private bool ShouldSerializewinscore() + { + return this.winscoreSpecified; + } + + private void Resetwinscore() + { + this.winscoreSpecified = false; + } + + private bool ShouldSerializelosescore() + { + return this.losescoreSpecified; + } + + private void Resetlosescore() + { + this.losescoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0