From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/SynGuildInheritNumInfo.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs new file mode 100644 index 00000000..dab175e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynGuildInheritNumInfo")] + [Serializable] + public class SynGuildInheritNumInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqNum", DataFormat = DataFormat.TwosComplement)] + public uint reqNum + { + get + { + return this._reqNum ?? 0u; + } + set + { + this._reqNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqNumSpecified + { + get + { + return this._reqNum != null; + } + set + { + bool flag = value == (this._reqNum == null); + if (flag) + { + this._reqNum = (value ? new uint?(this.reqNum) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "teacherNum", DataFormat = DataFormat.TwosComplement)] + public uint teacherNum + { + get + { + return this._teacherNum ?? 0u; + } + set + { + this._teacherNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teacherNumSpecified + { + get + { + return this._teacherNum != null; + } + set + { + bool flag = value == (this._teacherNum == null); + if (flag) + { + this._teacherNum = (value ? new uint?(this.teacherNum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "studentNum", DataFormat = DataFormat.TwosComplement)] + public uint studentNum + { + get + { + return this._studentNum ?? 0u; + } + set + { + this._studentNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool studentNumSpecified + { + get + { + return this._studentNum != null; + } + set + { + bool flag = value == (this._studentNum == null); + if (flag) + { + this._studentNum = (value ? new uint?(this.studentNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lastTime", DataFormat = DataFormat.TwosComplement)] + public uint lastTime + { + get + { + return this._lastTime ?? 0u; + } + set + { + this._lastTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastTimeSpecified + { + get + { + return this._lastTime != null; + } + set + { + bool flag = value == (this._lastTime == null); + if (flag) + { + this._lastTime = (value ? new uint?(this.lastTime) : null); + } + } + } + + private uint? _reqNum; + + private uint? _teacherNum; + + private uint? _studentNum; + + private uint? _lastTime; + + private IExtension extensionObject; + + private bool ShouldSerializereqNum() + { + return this.reqNumSpecified; + } + + private void ResetreqNum() + { + this.reqNumSpecified = false; + } + + private bool ShouldSerializeteacherNum() + { + return this.teacherNumSpecified; + } + + private void ResetteacherNum() + { + this.teacherNumSpecified = false; + } + + private bool ShouldSerializestudentNum() + { + return this.studentNumSpecified; + } + + private void ResetstudentNum() + { + this.studentNumSpecified = false; + } + + private bool ShouldSerializelastTime() + { + return this.lastTimeSpecified; + } + + private void ResetlastTime() + { + this.lastTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0