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/InvFightArg.cs | 234 +++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs new file mode 100644 index 00000000..8fb52847 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightArg")] + [Serializable] + public class InvFightArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqtype", DataFormat = DataFormat.TwosComplement)] + public InvFightReqType reqtype + { + get + { + return this._reqtype ?? InvFightReqType.IFRT_INV_ONE; + } + set + { + this._reqtype = new InvFightReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqtypeSpecified + { + get + { + return this._reqtype != null; + } + set + { + bool flag = value == (this._reqtype == null); + if (flag) + { + this._reqtype = (value ? new InvFightReqType?(this.reqtype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "invid", DataFormat = DataFormat.TwosComplement)] + public ulong invid + { + get + { + return this._invid ?? 0UL; + } + set + { + this._invid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool invidSpecified + { + get + { + return this._invid != null; + } + set + { + bool flag = value == (this._invid == null); + if (flag) + { + this._invid = (value ? new ulong?(this.invid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "iscross", DataFormat = DataFormat.Default)] + public bool iscross + { + get + { + return this._iscross ?? false; + } + set + { + this._iscross = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscrossSpecified + { + get + { + return this._iscross != null; + } + set + { + bool flag = value == (this._iscross == null); + if (flag) + { + this._iscross = (value ? new bool?(this.iscross) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "account", DataFormat = DataFormat.Default)] + public string account + { + get + { + return this._account ?? ""; + } + set + { + this._account = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountSpecified + { + get + { + return this._account != null; + } + set + { + bool flag = value == (this._account == null); + if (flag) + { + this._account = (value ? this.account : null); + } + } + } + + private InvFightReqType? _reqtype; + + private ulong? _roleid; + + private ulong? _invid; + + private bool? _iscross; + + private string _account; + + private IExtension extensionObject; + + private bool ShouldSerializereqtype() + { + return this.reqtypeSpecified; + } + + private void Resetreqtype() + { + this.reqtypeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeinvid() + { + return this.invidSpecified; + } + + private void Resetinvid() + { + this.invidSpecified = false; + } + + private bool ShouldSerializeiscross() + { + return this.iscrossSpecified; + } + + private void Resetiscross() + { + this.iscrossSpecified = false; + } + + private bool ShouldSerializeaccount() + { + return this.accountSpecified; + } + + private void Resetaccount() + { + this.accountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0