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/CheckinRecord.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs new file mode 100644 index 00000000..fa0d9420 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CheckinRecord")] + [Serializable] + public class CheckinRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "CheckinInfo", DataFormat = DataFormat.TwosComplement)] + public uint CheckinInfo + { + get + { + return this._CheckinInfo ?? 0u; + } + set + { + this._CheckinInfo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CheckinInfoSpecified + { + get + { + return this._CheckinInfo != null; + } + set + { + bool flag = value == (this._CheckinInfo == null); + if (flag) + { + this._CheckinInfo = (value ? new uint?(this.CheckinInfo) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "CheckinTime", DataFormat = DataFormat.TwosComplement)] + public uint CheckinTime + { + get + { + return this._CheckinTime ?? 0u; + } + set + { + this._CheckinTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CheckinTimeSpecified + { + get + { + return this._CheckinTime != null; + } + set + { + bool flag = value == (this._CheckinTime == null); + if (flag) + { + this._CheckinTime = (value ? new uint?(this.CheckinTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "CheckinCount", DataFormat = DataFormat.TwosComplement)] + public uint CheckinCount + { + get + { + return this._CheckinCount ?? 0u; + } + set + { + this._CheckinCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CheckinCountSpecified + { + get + { + return this._CheckinCount != null; + } + set + { + bool flag = value == (this._CheckinCount == null); + if (flag) + { + this._CheckinCount = (value ? new uint?(this.CheckinCount) : null); + } + } + } + + private uint? _CheckinInfo; + + private uint? _CheckinTime; + + private uint? _CheckinCount; + + private IExtension extensionObject; + + private bool ShouldSerializeCheckinInfo() + { + return this.CheckinInfoSpecified; + } + + private void ResetCheckinInfo() + { + this.CheckinInfoSpecified = false; + } + + private bool ShouldSerializeCheckinTime() + { + return this.CheckinTimeSpecified; + } + + private void ResetCheckinTime() + { + this.CheckinTimeSpecified = false; + } + + private bool ShouldSerializeCheckinCount() + { + return this.CheckinCountSpecified; + } + + private void ResetCheckinCount() + { + this.CheckinCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0