diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs b/Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs new file mode 100644 index 00000000..04e7948f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs @@ -0,0 +1,105 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "PushConfig")]
+ [Serializable]
+ public class PushConfig : 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 = "forbid", DataFormat = DataFormat.Default)]
+ public bool forbid
+ {
+ get
+ {
+ return this._forbid ?? false;
+ }
+ set
+ {
+ this._forbid = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool forbidSpecified
+ {
+ get
+ {
+ return this._forbid != null;
+ }
+ set
+ {
+ bool flag = value == (this._forbid == null);
+ if (flag)
+ {
+ this._forbid = (value ? new bool?(this.forbid) : null);
+ }
+ }
+ }
+
+ private uint? _type;
+
+ private bool? _forbid;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializetype()
+ {
+ return this.typeSpecified;
+ }
+
+ private void Resettype()
+ {
+ this.typeSpecified = false;
+ }
+
+ private bool ShouldSerializeforbid()
+ {
+ return this.forbidSpecified;
+ }
+
+ private void Resetforbid()
+ {
+ this.forbidSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|