summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs34
1 files changed, 34 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs
new file mode 100644
index 00000000..02963d57
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs
@@ -0,0 +1,34 @@
+using System;
+
+namespace XMainClient
+{
+ internal class XAttrChangeEventArgs : XEventArgs
+ {
+ public XAttributeDefine AttrKey { get; set; }
+
+ public double DeltaValue { get; set; }
+
+ public ulong CasterID { get; set; }
+
+ public bool bShowHUD { get; set; }
+
+ public XAttrChangeEventArgs()
+ {
+ this._eDefine = XEventDefine.XEvent_AttributeChange;
+ this.AttrKey = XAttributeDefine.XAttr_Invalid;
+ this.DeltaValue = 0.0;
+ this.bShowHUD = false;
+ this.CasterID = 0UL;
+ }
+
+ public override void Recycle()
+ {
+ this.AttrKey = XAttributeDefine.XAttr_Invalid;
+ this.DeltaValue = 0.0;
+ this.bShowHUD = false;
+ this.CasterID = 0UL;
+ base.Recycle();
+ XEventPool<XAttrChangeEventArgs>.Recycle(this);
+ }
+ }
+}