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/OperateRecord.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs new file mode 100644 index 00000000..c6243b55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OperateRecord")] + [Serializable] + public class OperateRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public uint position + { + get + { + return this._position ?? 0u; + } + set + { + this._position = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new uint?(this.position) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "arg", DataFormat = DataFormat.Default)] + public string arg + { + get + { + return this._arg ?? ""; + } + set + { + this._arg = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool argSpecified + { + get + { + return this._arg != null; + } + set + { + bool flag = value == (this._arg == null); + if (flag) + { + this._arg = (value ? this.arg : null); + } + } + } + + [ProtoMember(3, 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 uint? _position; + + private string _arg; + + private string _account; + + private IExtension extensionObject; + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializearg() + { + return this.argSpecified; + } + + private void Resetarg() + { + this.argSpecified = 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