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/PetInviteNtf.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs new file mode 100644 index 00000000..896e674a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs @@ -0,0 +1,78 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "PetInviteNtf")]
+ [Serializable]
+ public class PetInviteNtf : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public PetInviteInfo info
+ {
+ get
+ {
+ return this._info;
+ }
+ set
+ {
+ this._info = value;
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "allcount", DataFormat = DataFormat.TwosComplement)]
+ public uint allcount
+ {
+ get
+ {
+ return this._allcount ?? 0u;
+ }
+ set
+ {
+ this._allcount = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool allcountSpecified
+ {
+ get
+ {
+ return this._allcount != null;
+ }
+ set
+ {
+ bool flag = value == (this._allcount == null);
+ if (flag)
+ {
+ this._allcount = (value ? new uint?(this.allcount) : null);
+ }
+ }
+ }
+
+ private PetInviteInfo _info = null;
+
+ private uint? _allcount;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeallcount()
+ {
+ return this.allcountSpecified;
+ }
+
+ private void Resetallcount()
+ {
+ this.allcountSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|