From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs b/Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs new file mode 100644 index 00000000..fe24293f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ComAgate")] + [Serializable] + public class ComAgate : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemId", DataFormat = DataFormat.TwosComplement)] + public uint itemId + { + get + { + return this._itemId ?? 0u; + } + set + { + this._itemId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIdSpecified + { + get + { + return this._itemId != null; + } + set + { + bool flag = value == (this._itemId == null); + if (flag) + { + this._itemId = (value ? new uint?(this.itemId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "comNum", DataFormat = DataFormat.TwosComplement)] + public uint comNum + { + get + { + return this._comNum ?? 0u; + } + set + { + this._comNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool comNumSpecified + { + get + { + return this._comNum != null; + } + set + { + bool flag = value == (this._comNum == null); + if (flag) + { + this._comNum = (value ? new uint?(this.comNum) : null); + } + } + } + + private uint? _itemId; + + private uint? _comNum; + + private IExtension extensionObject; + + private bool ShouldSerializeitemId() + { + return this.itemIdSpecified; + } + + private void ResetitemId() + { + this.itemIdSpecified = false; + } + + private bool ShouldSerializecomNum() + { + return this.comNumSpecified; + } + + private void ResetcomNum() + { + this.comNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0