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/GuildMemberInfo.cs | 633 +++++++++++++++++++++ 1 file changed, 633 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs new file mode 100644 index 00000000..4fff95b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs @@ -0,0 +1,633 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberInfo")] + [Serializable] + public class GuildMemberInfo : 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 = "position", DataFormat = DataFormat.TwosComplement)] + public int position + { + get + { + return this._position ?? 0; + } + set + { + this._position = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new int?(this.position) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "contribute", DataFormat = DataFormat.TwosComplement)] + public int contribute + { + get + { + return this._contribute ?? 0; + } + set + { + this._contribute = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contributeSpecified + { + get + { + return this._contribute != null; + } + set + { + bool flag = value == (this._contribute == null); + if (flag) + { + this._contribute = (value ? new int?(this.contribute) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public uint updateTime + { + get + { + return this._updateTime ?? 0u; + } + set + { + this._updateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new uint?(this.updateTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "groupFightContribute", DataFormat = DataFormat.TwosComplement)] + public uint groupFightContribute + { + get + { + return this._groupFightContribute ?? 0u; + } + set + { + this._groupFightContribute = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupFightContributeSpecified + { + get + { + return this._groupFightContribute != null; + } + set + { + bool flag = value == (this._groupFightContribute == null); + if (flag) + { + this._groupFightContribute = (value ? new uint?(this.groupFightContribute) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "joinTime", DataFormat = DataFormat.TwosComplement)] + public uint joinTime + { + get + { + return this._joinTime ?? 0u; + } + set + { + this._joinTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joinTimeSpecified + { + get + { + return this._joinTime != null; + } + set + { + bool flag = value == (this._joinTime == null); + if (flag) + { + this._joinTime = (value ? new uint?(this.joinTime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "bind_status", DataFormat = DataFormat.TwosComplement)] + public GuildBindStatus bind_status + { + get + { + return this._bind_status ?? GuildBindStatus.GBS_NotBind; + } + set + { + this._bind_status = new GuildBindStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bind_statusSpecified + { + get + { + return this._bind_status != null; + } + set + { + bool flag = value == (this._bind_status == null); + if (flag) + { + this._bind_status = (value ? new GuildBindStatus?(this.bind_status) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "update_bind_time", DataFormat = DataFormat.TwosComplement)] + public uint update_bind_time + { + get + { + return this._update_bind_time ?? 0u; + } + set + { + this._update_bind_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool update_bind_timeSpecified + { + get + { + return this._update_bind_time != null; + } + set + { + bool flag = value == (this._update_bind_time == null); + if (flag) + { + this._update_bind_time = (value ? new uint?(this.update_bind_time) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "weeklyschoolpoint", DataFormat = DataFormat.TwosComplement)] + public uint weeklyschoolpoint + { + get + { + return this._weeklyschoolpoint ?? 0u; + } + set + { + this._weeklyschoolpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyschoolpointSpecified + { + get + { + return this._weeklyschoolpoint != null; + } + set + { + bool flag = value == (this._weeklyschoolpoint == null); + if (flag) + { + this._weeklyschoolpoint = (value ? new uint?(this.weeklyschoolpoint) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "weeklyschooltime", DataFormat = DataFormat.TwosComplement)] + public uint weeklyschooltime + { + get + { + return this._weeklyschooltime ?? 0u; + } + set + { + this._weeklyschooltime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyschooltimeSpecified + { + get + { + return this._weeklyschooltime != null; + } + set + { + bool flag = value == (this._weeklyschooltime == null); + if (flag) + { + this._weeklyschooltime = (value ? new uint?(this.weeklyschooltime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "weeklyhallpoint", DataFormat = DataFormat.TwosComplement)] + public uint weeklyhallpoint + { + get + { + return this._weeklyhallpoint ?? 0u; + } + set + { + this._weeklyhallpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyhallpointSpecified + { + get + { + return this._weeklyhallpoint != null; + } + set + { + bool flag = value == (this._weeklyhallpoint == null); + if (flag) + { + this._weeklyhallpoint = (value ? new uint?(this.weeklyhallpoint) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "weeklyhalltime", DataFormat = DataFormat.TwosComplement)] + public uint weeklyhalltime + { + get + { + return this._weeklyhalltime ?? 0u; + } + set + { + this._weeklyhalltime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyhalltimeSpecified + { + get + { + return this._weeklyhalltime != null; + } + set + { + bool flag = value == (this._weeklyhalltime == null); + if (flag) + { + this._weeklyhalltime = (value ? new uint?(this.weeklyhalltime) : null); + } + } + } + + [ProtoMember(13, Name = "itemlist", DataFormat = DataFormat.Default)] + public List itemlist + { + get + { + return this._itemlist; + } + } + + [ProtoMember(14, IsRequired = false, Name = "weeklyhuntcount", DataFormat = DataFormat.TwosComplement)] + public uint weeklyhuntcount + { + get + { + return this._weeklyhuntcount ?? 0u; + } + set + { + this._weeklyhuntcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyhuntcountSpecified + { + get + { + return this._weeklyhuntcount != null; + } + set + { + bool flag = value == (this._weeklyhuntcount == null); + if (flag) + { + this._weeklyhuntcount = (value ? new uint?(this.weeklyhuntcount) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "weeklyhunttime", DataFormat = DataFormat.TwosComplement)] + public uint weeklyhunttime + { + get + { + return this._weeklyhunttime ?? 0u; + } + set + { + this._weeklyhunttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyhunttimeSpecified + { + get + { + return this._weeklyhunttime != null; + } + set + { + bool flag = value == (this._weeklyhunttime == null); + if (flag) + { + this._weeklyhunttime = (value ? new uint?(this.weeklyhunttime) : null); + } + } + } + + private ulong? _roleid; + + private int? _position; + + private int? _contribute; + + private uint? _updateTime; + + private uint? _groupFightContribute; + + private uint? _joinTime; + + private GuildBindStatus? _bind_status; + + private uint? _update_bind_time; + + private uint? _weeklyschoolpoint; + + private uint? _weeklyschooltime; + + private uint? _weeklyhallpoint; + + private uint? _weeklyhalltime; + + private readonly List _itemlist = new List(); + + private uint? _weeklyhuntcount; + + private uint? _weeklyhunttime; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializecontribute() + { + return this.contributeSpecified; + } + + private void Resetcontribute() + { + this.contributeSpecified = false; + } + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + private bool ShouldSerializegroupFightContribute() + { + return this.groupFightContributeSpecified; + } + + private void ResetgroupFightContribute() + { + this.groupFightContributeSpecified = false; + } + + private bool ShouldSerializejoinTime() + { + return this.joinTimeSpecified; + } + + private void ResetjoinTime() + { + this.joinTimeSpecified = false; + } + + private bool ShouldSerializebind_status() + { + return this.bind_statusSpecified; + } + + private void Resetbind_status() + { + this.bind_statusSpecified = false; + } + + private bool ShouldSerializeupdate_bind_time() + { + return this.update_bind_timeSpecified; + } + + private void Resetupdate_bind_time() + { + this.update_bind_timeSpecified = false; + } + + private bool ShouldSerializeweeklyschoolpoint() + { + return this.weeklyschoolpointSpecified; + } + + private void Resetweeklyschoolpoint() + { + this.weeklyschoolpointSpecified = false; + } + + private bool ShouldSerializeweeklyschooltime() + { + return this.weeklyschooltimeSpecified; + } + + private void Resetweeklyschooltime() + { + this.weeklyschooltimeSpecified = false; + } + + private bool ShouldSerializeweeklyhallpoint() + { + return this.weeklyhallpointSpecified; + } + + private void Resetweeklyhallpoint() + { + this.weeklyhallpointSpecified = false; + } + + private bool ShouldSerializeweeklyhalltime() + { + return this.weeklyhalltimeSpecified; + } + + private void Resetweeklyhalltime() + { + this.weeklyhalltimeSpecified = false; + } + + private bool ShouldSerializeweeklyhuntcount() + { + return this.weeklyhuntcountSpecified; + } + + private void Resetweeklyhuntcount() + { + this.weeklyhuntcountSpecified = false; + } + + private bool ShouldSerializeweeklyhunttime() + { + return this.weeklyhunttimeSpecified; + } + + private void Resetweeklyhunttime() + { + this.weeklyhunttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0