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/LevelChanged.cs | 182 +++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs new file mode 100644 index 00000000..7fe47f51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs @@ -0,0 +1,182 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelChanged")] + [Serializable] + public class LevelChanged : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public ulong exp + { + get + { + return this._exp ?? 0UL; + } + set + { + this._exp = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new ulong?(this.exp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "maxexp", DataFormat = DataFormat.TwosComplement)] + public ulong maxexp + { + get + { + return this._maxexp ?? 0UL; + } + set + { + this._maxexp = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxexpSpecified + { + get + { + return this._maxexp != null; + } + set + { + bool flag = value == (this._maxexp == null); + if (flag) + { + this._maxexp = (value ? new ulong?(this.maxexp) : null); + } + } + } + + [ProtoMember(4, Name = "attrid", DataFormat = DataFormat.TwosComplement)] + public List attrid + { + get + { + return this._attrid; + } + } + + [ProtoMember(5, Name = "attroldvalue", DataFormat = DataFormat.TwosComplement)] + public List attroldvalue + { + get + { + return this._attroldvalue; + } + } + + [ProtoMember(6, Name = "attrnewvalue", DataFormat = DataFormat.TwosComplement)] + public List attrnewvalue + { + get + { + return this._attrnewvalue; + } + } + + private uint? _level; + + private ulong? _exp; + + private ulong? _maxexp; + + private readonly List _attrid = new List(); + + private readonly List _attroldvalue = new List(); + + private readonly List _attrnewvalue = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializemaxexp() + { + return this.maxexpSpecified; + } + + private void Resetmaxexp() + { + this.maxexpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0