summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs62
1 files changed, 62 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs
new file mode 100644
index 00000000..0ea4459b
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs
@@ -0,0 +1,62 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "EventNotify")]
+ [Serializable]
+ public class EventNotify : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "notify", DataFormat = DataFormat.Default)]
+ public string notify
+ {
+ get
+ {
+ return this._notify ?? "";
+ }
+ set
+ {
+ this._notify = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool notifySpecified
+ {
+ get
+ {
+ return this._notify != null;
+ }
+ set
+ {
+ bool flag = value == (this._notify == null);
+ if (flag)
+ {
+ this._notify = (value ? this.notify : null);
+ }
+ }
+ }
+
+ private string _notify;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializenotify()
+ {
+ return this.notifySpecified;
+ }
+
+ private void Resetnotify()
+ {
+ this.notifySpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}