From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/NotifyMentorApplyData.cs | 160 +++++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs new file mode 100644 index 00000000..5d6e8ce7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyMentorApplyData")] + [Serializable] + public class NotifyMentorApplyData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)] + public EMentorRelationPosition pos + { + get + { + return this._pos ?? EMentorRelationPosition.EMentorPosMaster; + } + set + { + this._pos = new EMentorRelationPosition?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posSpecified + { + get + { + return this._pos != null; + } + set + { + bool flag = value == (this._pos == null); + if (flag) + { + this._pos = (value ? new EMentorRelationPosition?(this.pos) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hasInheritOrReportTask", DataFormat = DataFormat.Default)] + public bool hasInheritOrReportTask + { + get + { + return this._hasInheritOrReportTask ?? false; + } + set + { + this._hasInheritOrReportTask = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasInheritOrReportTaskSpecified + { + get + { + return this._hasInheritOrReportTask != null; + } + set + { + bool flag = value == (this._hasInheritOrReportTask == null); + if (flag) + { + this._hasInheritOrReportTask = (value ? new bool?(this.hasInheritOrReportTask) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "hasMsg", DataFormat = DataFormat.Default)] + public bool hasMsg + { + get + { + return this._hasMsg ?? false; + } + set + { + this._hasMsg = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasMsgSpecified + { + get + { + return this._hasMsg != null; + } + set + { + bool flag = value == (this._hasMsg == null); + if (flag) + { + this._hasMsg = (value ? new bool?(this.hasMsg) : null); + } + } + } + + [ProtoMember(4, Name = "appliedBreakInfos", DataFormat = DataFormat.Default)] + public List appliedBreakInfos + { + get + { + return this._appliedBreakInfos; + } + } + + private EMentorRelationPosition? _pos; + + private bool? _hasInheritOrReportTask; + + private bool? _hasMsg; + + private readonly List _appliedBreakInfos = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializepos() + { + return this.posSpecified; + } + + private void Resetpos() + { + this.posSpecified = false; + } + + private bool ShouldSerializehasInheritOrReportTask() + { + return this.hasInheritOrReportTaskSpecified; + } + + private void ResethasInheritOrReportTask() + { + this.hasInheritOrReportTaskSpecified = false; + } + + private bool ShouldSerializehasMsg() + { + return this.hasMsgSpecified; + } + + private void ResethasMsg() + { + this.hasMsgSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0