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/StcDesignationInfo.cs | 234 +++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs new file mode 100644 index 00000000..a08d47ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StcDesignationInfo")] + [Serializable] + public class StcDesignationInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "designationID", DataFormat = DataFormat.TwosComplement)] + public uint designationID + { + get + { + return this._designationID ?? 0u; + } + set + { + this._designationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool designationIDSpecified + { + get + { + return this._designationID != null; + } + set + { + bool flag = value == (this._designationID == null); + if (flag) + { + this._designationID = (value ? new uint?(this.designationID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isNew", DataFormat = DataFormat.Default)] + public bool isNew + { + get + { + return this._isNew ?? false; + } + set + { + this._isNew = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isNewSpecified + { + get + { + return this._isNew != null; + } + set + { + bool flag = value == (this._isNew == null); + if (flag) + { + this._isNew = (value ? new bool?(this.isNew) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "reachTimestamp", DataFormat = DataFormat.TwosComplement)] + public uint reachTimestamp + { + get + { + return this._reachTimestamp ?? 0u; + } + set + { + this._reachTimestamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reachTimestampSpecified + { + get + { + return this._reachTimestamp != null; + } + set + { + bool flag = value == (this._reachTimestamp == null); + if (flag) + { + this._reachTimestamp = (value ? new uint?(this.reachTimestamp) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _designationID; + + private bool? _isNew; + + private uint? _reachTimestamp; + + private string _name; + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializedesignationID() + { + return this.designationIDSpecified; + } + + private void ResetdesignationID() + { + this.designationIDSpecified = false; + } + + private bool ShouldSerializeisNew() + { + return this.isNewSpecified; + } + + private void ResetisNew() + { + this.isNewSpecified = false; + } + + private bool ShouldSerializereachTimestamp() + { + return this.reachTimestampSpecified; + } + + private void ResetreachTimestamp() + { + this.reachTimestampSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0