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/CampTaskInfo2DB.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs new file mode 100644 index 00000000..985353d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampTaskInfo2DB")] + [Serializable] + public class CampTaskInfo2DB : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "resetTime", DataFormat = DataFormat.TwosComplement)] + public int resetTime + { + get + { + return this._resetTime ?? 0; + } + set + { + this._resetTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resetTimeSpecified + { + get + { + return this._resetTime != null; + } + set + { + bool flag = value == (this._resetTime == null); + if (flag) + { + this._resetTime = (value ? new int?(this.resetTime) : null); + } + } + } + + [ProtoMember(2, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + [ProtoMember(3, IsRequired = false, Name = "refreshTimes", DataFormat = DataFormat.TwosComplement)] + public int refreshTimes + { + get + { + return this._refreshTimes ?? 0; + } + set + { + this._refreshTimes = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshTimesSpecified + { + get + { + return this._refreshTimes != null; + } + set + { + bool flag = value == (this._refreshTimes == null); + if (flag) + { + this._refreshTimes = (value ? new int?(this.refreshTimes) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rewardTimes", DataFormat = DataFormat.TwosComplement)] + public int rewardTimes + { + get + { + return this._rewardTimes ?? 0; + } + set + { + this._rewardTimes = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardTimesSpecified + { + get + { + return this._rewardTimes != null; + } + set + { + bool flag = value == (this._rewardTimes == null); + if (flag) + { + this._rewardTimes = (value ? new int?(this.rewardTimes) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "rewardTime", DataFormat = DataFormat.TwosComplement)] + public int rewardTime + { + get + { + return this._rewardTime ?? 0; + } + set + { + this._rewardTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardTimeSpecified + { + get + { + return this._rewardTime != null; + } + set + { + bool flag = value == (this._rewardTime == null); + if (flag) + { + this._rewardTime = (value ? new int?(this.rewardTime) : null); + } + } + } + + private int? _resetTime; + + private readonly List _infos = new List(); + + private int? _refreshTimes; + + private int? _rewardTimes; + + private int? _rewardTime; + + private IExtension extensionObject; + + private bool ShouldSerializeresetTime() + { + return this.resetTimeSpecified; + } + + private void ResetresetTime() + { + this.resetTimeSpecified = false; + } + + private bool ShouldSerializerefreshTimes() + { + return this.refreshTimesSpecified; + } + + private void ResetrefreshTimes() + { + this.refreshTimesSpecified = false; + } + + private bool ShouldSerializerewardTimes() + { + return this.rewardTimesSpecified; + } + + private void ResetrewardTimes() + { + this.rewardTimesSpecified = false; + } + + private bool ShouldSerializerewardTime() + { + return this.rewardTimeSpecified; + } + + private void ResetrewardTime() + { + this.rewardTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0