From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs new file mode 100644 index 00000000..68644ef9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfKickRes")] + [Serializable] + public class GmfKickRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "cooldowntime", DataFormat = DataFormat.TwosComplement)] + public uint cooldowntime + { + get + { + return this._cooldowntime ?? 0u; + } + set + { + this._cooldowntime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldowntimeSpecified + { + get + { + return this._cooldowntime != null; + } + set + { + bool flag = value == (this._cooldowntime == null); + if (flag) + { + this._cooldowntime = (value ? new uint?(this.cooldowntime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leaderkick", DataFormat = DataFormat.TwosComplement)] + public int leaderkick + { + get + { + return this._leaderkick ?? 0; + } + set + { + this._leaderkick = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderkickSpecified + { + get + { + return this._leaderkick != null; + } + set + { + bool flag = value == (this._leaderkick == null); + if (flag) + { + this._leaderkick = (value ? new int?(this.leaderkick) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "kickname", DataFormat = DataFormat.Default)] + public string kickname + { + get + { + return this._kickname ?? ""; + } + set + { + this._kickname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kicknameSpecified + { + get + { + return this._kickname != null; + } + set + { + bool flag = value == (this._kickname == null); + if (flag) + { + this._kickname = (value ? this.kickname : null); + } + } + } + + private uint? _cooldowntime; + + private int? _leaderkick; + + private string _kickname; + + private IExtension extensionObject; + + private bool ShouldSerializecooldowntime() + { + return this.cooldowntimeSpecified; + } + + private void Resetcooldowntime() + { + this.cooldowntimeSpecified = false; + } + + private bool ShouldSerializeleaderkick() + { + return this.leaderkickSpecified; + } + + private void Resetleaderkick() + { + this.leaderkickSpecified = false; + } + + private bool ShouldSerializekickname() + { + return this.kicknameSpecified; + } + + private void Resetkickname() + { + this.kicknameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0