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/PlatNotice.cs | 406 +++++++++++++++++++++ 1 file changed, 406 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs new file mode 100644 index 00000000..d8ffe38f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatNotice")] + [Serializable] + public class PlatNotice : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "noticeid", DataFormat = DataFormat.TwosComplement)] + public uint noticeid + { + get + { + return this._noticeid ?? 0u; + } + set + { + this._noticeid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool noticeidSpecified + { + get + { + return this._noticeid != null; + } + set + { + bool flag = value == (this._noticeid == null); + if (flag) + { + this._noticeid = (value ? new uint?(this.noticeid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isopen", DataFormat = DataFormat.Default)] + public bool isopen + { + get + { + return this._isopen ?? false; + } + set + { + this._isopen = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isopenSpecified + { + get + { + return this._isopen != null; + } + set + { + bool flag = value == (this._isopen == null); + if (flag) + { + this._isopen = (value ? new bool?(this.isopen) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "areaid", DataFormat = DataFormat.TwosComplement)] + public uint areaid + { + get + { + return this._areaid ?? 0u; + } + set + { + this._areaid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool areaidSpecified + { + get + { + return this._areaid != null; + } + set + { + bool flag = value == (this._areaid == null); + if (flag) + { + this._areaid = (value ? new uint?(this.areaid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "platid", DataFormat = DataFormat.TwosComplement)] + public uint platid + { + get + { + return this._platid ?? 0u; + } + set + { + this._platid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool platidSpecified + { + get + { + return this._platid != null; + } + set + { + bool flag = value == (this._platid == null); + if (flag) + { + this._platid = (value ? new uint?(this.platid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "content", DataFormat = DataFormat.Default)] + public string content + { + get + { + return this._content ?? ""; + } + set + { + this._content = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contentSpecified + { + get + { + return this._content != null; + } + set + { + bool flag = value == (this._content == null); + if (flag) + { + this._content = (value ? this.content : null); + } + } + } + + [ProtoMember(7, 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(8, IsRequired = false, Name = "isnew", DataFormat = DataFormat.Default)] + public bool isnew + { + get + { + return this._isnew ?? false; + } + set + { + this._isnew = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isnewSpecified + { + get + { + return this._isnew != null; + } + set + { + bool flag = value == (this._isnew == null); + if (flag) + { + this._isnew = (value ? new bool?(this.isnew) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "title", DataFormat = DataFormat.Default)] + public string title + { + get + { + return this._title ?? ""; + } + set + { + this._title = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? this.title : null); + } + } + } + + private uint? _type; + + private uint? _noticeid; + + private bool? _isopen; + + private uint? _areaid; + + private uint? _platid; + + private string _content; + + private uint? _updatetime; + + private bool? _isnew; + + private string _title; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializenoticeid() + { + return this.noticeidSpecified; + } + + private void Resetnoticeid() + { + this.noticeidSpecified = false; + } + + private bool ShouldSerializeisopen() + { + return this.isopenSpecified; + } + + private void Resetisopen() + { + this.isopenSpecified = false; + } + + private bool ShouldSerializeareaid() + { + return this.areaidSpecified; + } + + private void Resetareaid() + { + this.areaidSpecified = false; + } + + private bool ShouldSerializeplatid() + { + return this.platidSpecified; + } + + private void Resetplatid() + { + this.platidSpecified = false; + } + + private bool ShouldSerializecontent() + { + return this.contentSpecified; + } + + private void Resetcontent() + { + this.contentSpecified = false; + } + + private bool ShouldSerializeupdatetime() + { + return this.updatetimeSpecified; + } + + private void Resetupdatetime() + { + this.updatetimeSpecified = false; + } + + private bool ShouldSerializeisnew() + { + return this.isnewSpecified; + } + + private void Resetisnew() + { + this.isnewSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0