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/GuildCampChatInfo.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs new file mode 100644 index 00000000..a9cd4902 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampChatInfo")] + [Serializable] + public class GuildCampChatInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "audio_id", DataFormat = DataFormat.TwosComplement)] + public ulong audio_id + { + get + { + return this._audio_id ?? 0UL; + } + set + { + this._audio_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audio_idSpecified + { + get + { + return this._audio_id != null; + } + set + { + bool flag = value == (this._audio_id == null); + if (flag) + { + this._audio_id = (value ? new ulong?(this.audio_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "audio_time", DataFormat = DataFormat.TwosComplement)] + public uint audio_time + { + get + { + return this._audio_time ?? 0u; + } + set + { + this._audio_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audio_timeSpecified + { + get + { + return this._audio_time != null; + } + set + { + bool flag = value == (this._audio_time == null); + if (flag) + { + this._audio_time = (value ? new uint?(this.audio_time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "chat_text", DataFormat = DataFormat.Default)] + public string chat_text + { + get + { + return this._chat_text ?? ""; + } + set + { + this._chat_text = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chat_textSpecified + { + get + { + return this._chat_text != null; + } + set + { + bool flag = value == (this._chat_text == null); + if (flag) + { + this._chat_text = (value ? this.chat_text : null); + } + } + } + + private ulong? _audio_id; + + private uint? _audio_time; + + private string _chat_text; + + private IExtension extensionObject; + + private bool ShouldSerializeaudio_id() + { + return this.audio_idSpecified; + } + + private void Resetaudio_id() + { + this.audio_idSpecified = false; + } + + private bool ShouldSerializeaudio_time() + { + return this.audio_timeSpecified; + } + + private void Resetaudio_time() + { + this.audio_timeSpecified = false; + } + + private bool ShouldSerializechat_text() + { + return this.chat_textSpecified; + } + + private void Resetchat_text() + { + this.chat_textSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0