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/IdipPunishData.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs new file mode 100644 index 00000000..43fca884 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IdipPunishData")] + [Serializable] + public class IdipPunishData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(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 int?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "punishTime", DataFormat = DataFormat.TwosComplement)] + public int punishTime + { + get + { + return this._punishTime ?? 0; + } + set + { + this._punishTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool punishTimeSpecified + { + get + { + return this._punishTime != null; + } + set + { + bool flag = value == (this._punishTime == null); + if (flag) + { + this._punishTime = (value ? new int?(this.punishTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "banTime", DataFormat = DataFormat.TwosComplement)] + public int banTime + { + get + { + return this._banTime ?? 0; + } + set + { + this._banTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banTimeSpecified + { + get + { + return this._banTime != null; + } + set + { + bool flag = value == (this._banTime == null); + if (flag) + { + this._banTime = (value ? new int?(this.banTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "reason", DataFormat = DataFormat.Default)] + public string reason + { + get + { + return this._reason ?? ""; + } + set + { + this._reason = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? this.reason : null); + } + } + } + + private int? _type; + + private int? _punishTime; + + private int? _banTime; + + private string _reason; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializepunishTime() + { + return this.punishTimeSpecified; + } + + private void ResetpunishTime() + { + this.punishTimeSpecified = false; + } + + private bool ShouldSerializebanTime() + { + return this.banTimeSpecified; + } + + private void ResetbanTime() + { + this.banTimeSpecified = false; + } + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0