summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs39
1 files changed, 39 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs
new file mode 100644
index 00000000..77860e1d
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs
@@ -0,0 +1,39 @@
+using System;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class XChargeEventArgs : XActionArgs
+ {
+ public XChargeData Data { get; set; }
+
+ public float Height { get; set; }
+
+ public float TimeSpan { get; set; }
+
+ public XEntity AimedTarget = null;
+
+ public float TimeScale = 1f;
+
+ public float TimeGone;
+
+ public XChargeEventArgs()
+ {
+ this._eDefine = XEventDefine.XEvent_Charge;
+ this.Data = null;
+ this.TimeGone = 0f;
+ }
+
+ public override void Recycle()
+ {
+ this.Data = null;
+ this.AimedTarget = null;
+ this.Height = 0f;
+ this.TimeSpan = 0f;
+ this.TimeScale = 1f;
+ this.TimeGone = 0f;
+ base.Recycle();
+ XEventPool<XChargeEventArgs>.Recycle(this);
+ }
+ }
+}