summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs
new file mode 100644
index 00000000..18df772e
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs
@@ -0,0 +1,41 @@
+using System;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class XAttackEventArgs : XEventArgs
+ {
+ public uint Identify;
+
+ public XEntity Target = null;
+
+ public int Slot = -1;
+
+ public uint SyncSequence = 0u;
+
+ public bool Demonstration = false;
+
+ public XCameraEx AffectCamera = XSingleton<XScene>.singleton.GameCamera;
+
+ public float TimeScale = 1f;
+
+ public XAttackEventArgs()
+ {
+ this._eDefine = XEventDefine.XEvent_Attack;
+ }
+
+ public override void Recycle()
+ {
+ this.Identify = 0u;
+ this.Target = null;
+ this.Slot = -1;
+ this.Demonstration = false;
+ this.AffectCamera = XSingleton<XScene>.singleton.GameCamera;
+ this.TimeScale = 1f;
+ this.SyncSequence = 0u;
+ base.Recycle();
+ base.Token = (XSingleton<XCommon>.singleton.UniqueToken ^ (long)DateTime.Now.Millisecond);
+ XEventPool<XAttackEventArgs>.Recycle(this);
+ }
+ }
+}