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