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/RoleSmallInfo.cs | 234 +++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs new file mode 100644 index 00000000..8632959c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleSmallInfo")] + [Serializable] + public class RoleSmallInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleName", DataFormat = DataFormat.Default)] + public string roleName + { + get + { + return this._roleName ?? ""; + } + set + { + this._roleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleNameSpecified + { + get + { + return this._roleName != null; + } + set + { + bool flag = value == (this._roleName == null); + if (flag) + { + this._roleName = (value ? this.roleName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleLevel", DataFormat = DataFormat.TwosComplement)] + public uint roleLevel + { + get + { + return this._roleLevel ?? 0u; + } + set + { + this._roleLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleLevelSpecified + { + get + { + return this._roleLevel != null; + } + set + { + bool flag = value == (this._roleLevel == null); + if (flag) + { + this._roleLevel = (value ? new uint?(this.roleLevel) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleProfession", DataFormat = DataFormat.TwosComplement)] + public uint roleProfession + { + get + { + return this._roleProfession ?? 0u; + } + set + { + this._roleProfession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleProfessionSpecified + { + get + { + return this._roleProfession != null; + } + set + { + bool flag = value == (this._roleProfession == null); + if (flag) + { + this._roleProfession = (value ? new uint?(this.roleProfession) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "rolePPT", DataFormat = DataFormat.TwosComplement)] + public uint rolePPT + { + get + { + return this._rolePPT ?? 0u; + } + set + { + this._rolePPT = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolePPTSpecified + { + get + { + return this._rolePPT != null; + } + set + { + bool flag = value == (this._rolePPT == null); + if (flag) + { + this._rolePPT = (value ? new uint?(this.rolePPT) : null); + } + } + } + + private ulong? _roleID; + + private string _roleName; + + private uint? _roleLevel; + + private uint? _roleProfession; + + private uint? _rolePPT; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeroleName() + { + return this.roleNameSpecified; + } + + private void ResetroleName() + { + this.roleNameSpecified = false; + } + + private bool ShouldSerializeroleLevel() + { + return this.roleLevelSpecified; + } + + private void ResetroleLevel() + { + this.roleLevelSpecified = false; + } + + private bool ShouldSerializeroleProfession() + { + return this.roleProfessionSpecified; + } + + private void ResetroleProfession() + { + this.roleProfessionSpecified = false; + } + + private bool ShouldSerializerolePPT() + { + return this.rolePPTSpecified; + } + + private void ResetrolePPT() + { + this.rolePPTSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0