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/BackFlowData.cs | 370 +++++++++++++++++++++ 1 file changed, 370 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs new file mode 100644 index 00000000..231e566a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs @@ -0,0 +1,370 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowData")] + [Serializable] + public class BackFlowData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "worldlevel", DataFormat = DataFormat.TwosComplement)] + public uint worldlevel + { + get + { + return this._worldlevel ?? 0u; + } + set + { + this._worldlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool worldlevelSpecified + { + get + { + return this._worldlevel != null; + } + set + { + bool flag = value == (this._worldlevel == null); + if (flag) + { + this._worldlevel = (value ? new uint?(this.worldlevel) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(3, Name = "alreadyGet", DataFormat = DataFormat.TwosComplement)] + public List alreadyGet + { + get + { + return this._alreadyGet; + } + } + + [ProtoMember(4, Name = "payGiftType", DataFormat = DataFormat.Default)] + public List payGiftType + { + get + { + return this._payGiftType; + } + } + + [ProtoMember(5, Name = "payGiftCount", DataFormat = DataFormat.TwosComplement)] + public List payGiftCount + { + get + { + return this._payGiftCount; + } + } + + [ProtoMember(6, IsRequired = false, Name = "lostDay", DataFormat = DataFormat.TwosComplement)] + public uint lostDay + { + get + { + return this._lostDay ?? 0u; + } + set + { + this._lostDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lostDaySpecified + { + get + { + return this._lostDay != null; + } + set + { + bool flag = value == (this._lostDay == null); + if (flag) + { + this._lostDay = (value ? new uint?(this.lostDay) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "shop", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BackFlowShopData shop + { + get + { + return this._shop; + } + set + { + this._shop = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "lastSmallDragonFinishTime", DataFormat = DataFormat.TwosComplement)] + public uint lastSmallDragonFinishTime + { + get + { + return this._lastSmallDragonFinishTime ?? 0u; + } + set + { + this._lastSmallDragonFinishTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastSmallDragonFinishTimeSpecified + { + get + { + return this._lastSmallDragonFinishTime != null; + } + set + { + bool flag = value == (this._lastSmallDragonFinishTime == null); + if (flag) + { + this._lastSmallDragonFinishTime = (value ? new uint?(this.lastSmallDragonFinishTime) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "isFinishBackFlowScene", DataFormat = DataFormat.Default)] + public bool isFinishBackFlowScene + { + get + { + return this._isFinishBackFlowScene ?? false; + } + set + { + this._isFinishBackFlowScene = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFinishBackFlowSceneSpecified + { + get + { + return this._isFinishBackFlowScene != null; + } + set + { + bool flag = value == (this._isFinishBackFlowScene == null); + if (flag) + { + this._isFinishBackFlowScene = (value ? new bool?(this.isFinishBackFlowScene) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "lastNestFinishTime", DataFormat = DataFormat.TwosComplement)] + public uint lastNestFinishTime + { + get + { + return this._lastNestFinishTime ?? 0u; + } + set + { + this._lastNestFinishTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastNestFinishTimeSpecified + { + get + { + return this._lastNestFinishTime != null; + } + set + { + bool flag = value == (this._lastNestFinishTime == null); + if (flag) + { + this._lastNestFinishTime = (value ? new uint?(this.lastNestFinishTime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "nestFinishCount", DataFormat = DataFormat.TwosComplement)] + public uint nestFinishCount + { + get + { + return this._nestFinishCount ?? 0u; + } + set + { + this._nestFinishCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nestFinishCountSpecified + { + get + { + return this._nestFinishCount != null; + } + set + { + bool flag = value == (this._nestFinishCount == null); + if (flag) + { + this._nestFinishCount = (value ? new uint?(this.nestFinishCount) : null); + } + } + } + + private uint? _worldlevel; + + private uint? _point; + + private readonly List _alreadyGet = new List(); + + private readonly List _payGiftType = new List(); + + private readonly List _payGiftCount = new List(); + + private uint? _lostDay; + + private BackFlowShopData _shop = null; + + private uint? _lastSmallDragonFinishTime; + + private bool? _isFinishBackFlowScene; + + private uint? _lastNestFinishTime; + + private uint? _nestFinishCount; + + private IExtension extensionObject; + + private bool ShouldSerializeworldlevel() + { + return this.worldlevelSpecified; + } + + private void Resetworldlevel() + { + this.worldlevelSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializelostDay() + { + return this.lostDaySpecified; + } + + private void ResetlostDay() + { + this.lostDaySpecified = false; + } + + private bool ShouldSerializelastSmallDragonFinishTime() + { + return this.lastSmallDragonFinishTimeSpecified; + } + + private void ResetlastSmallDragonFinishTime() + { + this.lastSmallDragonFinishTimeSpecified = false; + } + + private bool ShouldSerializeisFinishBackFlowScene() + { + return this.isFinishBackFlowSceneSpecified; + } + + private void ResetisFinishBackFlowScene() + { + this.isFinishBackFlowSceneSpecified = false; + } + + private bool ShouldSerializelastNestFinishTime() + { + return this.lastNestFinishTimeSpecified; + } + + private void ResetlastNestFinishTime() + { + this.lastNestFinishTimeSpecified = false; + } + + private bool ShouldSerializenestFinishCount() + { + return this.nestFinishCountSpecified; + } + + private void ResetnestFinishCount() + { + this.nestFinishCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0