From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs | 452 +++++++++++++++++++++ 1 file changed, 452 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs new file mode 100644 index 00000000..dfc04d90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs @@ -0,0 +1,452 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpriteInfo")] + [Serializable] + public class SpriteInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "SpriteID", DataFormat = DataFormat.TwosComplement)] + public uint SpriteID + { + get + { + return this._SpriteID ?? 0u; + } + set + { + this._SpriteID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SpriteIDSpecified + { + get + { + return this._SpriteID != null; + } + set + { + bool flag = value == (this._SpriteID == null); + if (flag) + { + this._SpriteID = (value ? new uint?(this.SpriteID) : null); + } + } + } + + [ProtoMember(3, Name = "AttrID", DataFormat = DataFormat.TwosComplement)] + public List AttrID + { + get + { + return this._AttrID; + } + } + + [ProtoMember(4, Name = "AttrValue", DataFormat = DataFormat.TwosComplement)] + public List AttrValue + { + get + { + return this._AttrValue; + } + } + + [ProtoMember(5, Name = "AddValue", DataFormat = DataFormat.TwosComplement)] + public List AddValue + { + get + { + return this._AddValue; + } + } + + [ProtoMember(6, IsRequired = false, Name = "SkillID", DataFormat = DataFormat.TwosComplement)] + public uint SkillID + { + get + { + return this._SkillID ?? 0u; + } + set + { + this._SkillID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillIDSpecified + { + get + { + return this._SkillID != null; + } + set + { + bool flag = value == (this._SkillID == null); + if (flag) + { + this._SkillID = (value ? new uint?(this.SkillID) : null); + } + } + } + + [ProtoMember(7, Name = "PassiveSkillID", DataFormat = DataFormat.TwosComplement)] + public List PassiveSkillID + { + get + { + return this._PassiveSkillID; + } + } + + [ProtoMember(8, 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(9, IsRequired = false, Name = "EvolutionLevel", DataFormat = DataFormat.TwosComplement)] + public uint EvolutionLevel + { + get + { + return this._EvolutionLevel ?? 0u; + } + set + { + this._EvolutionLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EvolutionLevelSpecified + { + get + { + return this._EvolutionLevel != null; + } + set + { + bool flag = value == (this._EvolutionLevel == null); + if (flag) + { + this._EvolutionLevel = (value ? new uint?(this.EvolutionLevel) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "Exp", DataFormat = DataFormat.TwosComplement)] + public uint Exp + { + get + { + return this._Exp ?? 0u; + } + set + { + this._Exp = new uint?(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 uint?(this.Exp) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "PowerPoint", DataFormat = DataFormat.TwosComplement)] + public uint PowerPoint + { + get + { + return this._PowerPoint ?? 0u; + } + set + { + this._PowerPoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PowerPointSpecified + { + get + { + return this._PowerPoint != null; + } + set + { + bool flag = value == (this._PowerPoint == null); + if (flag) + { + this._PowerPoint = (value ? new uint?(this.PowerPoint) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "TrainExp", DataFormat = DataFormat.TwosComplement)] + public uint TrainExp + { + get + { + return this._TrainExp ?? 0u; + } + set + { + this._TrainExp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TrainExpSpecified + { + get + { + return this._TrainExp != null; + } + set + { + bool flag = value == (this._TrainExp == null); + if (flag) + { + this._TrainExp = (value ? new uint?(this.TrainExp) : null); + } + } + } + + [ProtoMember(13, Name = "EvoAttrID", DataFormat = DataFormat.TwosComplement)] + public List EvoAttrID + { + get + { + return this._EvoAttrID; + } + } + + [ProtoMember(14, Name = "EvoAttrValue", DataFormat = DataFormat.TwosComplement)] + public List EvoAttrValue + { + get + { + return this._EvoAttrValue; + } + } + + [ProtoMember(15, Name = "ThisLevelEvoAttrID", DataFormat = DataFormat.TwosComplement)] + public List ThisLevelEvoAttrID + { + get + { + return this._ThisLevelEvoAttrID; + } + } + + [ProtoMember(16, Name = "ThisLevelEvoAttrValue", DataFormat = DataFormat.TwosComplement)] + public List ThisLevelEvoAttrValue + { + get + { + return this._ThisLevelEvoAttrValue; + } + } + + private ulong? _uid; + + private uint? _SpriteID; + + private readonly List _AttrID = new List(); + + private readonly List _AttrValue = new List(); + + private readonly List _AddValue = new List(); + + private uint? _SkillID; + + private readonly List _PassiveSkillID = new List(); + + private uint? _Level; + + private uint? _EvolutionLevel; + + private uint? _Exp; + + private uint? _PowerPoint; + + private uint? _TrainExp; + + private readonly List _EvoAttrID = new List(); + + private readonly List _EvoAttrValue = new List(); + + private readonly List _ThisLevelEvoAttrID = new List(); + + private readonly List _ThisLevelEvoAttrValue = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeSpriteID() + { + return this.SpriteIDSpecified; + } + + private void ResetSpriteID() + { + this.SpriteIDSpecified = false; + } + + private bool ShouldSerializeSkillID() + { + return this.SkillIDSpecified; + } + + private void ResetSkillID() + { + this.SkillIDSpecified = false; + } + + private bool ShouldSerializeLevel() + { + return this.LevelSpecified; + } + + private void ResetLevel() + { + this.LevelSpecified = false; + } + + private bool ShouldSerializeEvolutionLevel() + { + return this.EvolutionLevelSpecified; + } + + private void ResetEvolutionLevel() + { + this.EvolutionLevelSpecified = false; + } + + private bool ShouldSerializeExp() + { + return this.ExpSpecified; + } + + private void ResetExp() + { + this.ExpSpecified = false; + } + + private bool ShouldSerializePowerPoint() + { + return this.PowerPointSpecified; + } + + private void ResetPowerPoint() + { + this.PowerPointSpecified = false; + } + + private bool ShouldSerializeTrainExp() + { + return this.TrainExpSpecified; + } + + private void ResetTrainExp() + { + this.TrainExpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0