From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/XAttackEventArgs.cs | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs (limited to 'Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs') 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.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.singleton.GameCamera; + this.TimeScale = 1f; + this.SyncSequence = 0u; + base.Recycle(); + base.Token = (XSingleton.singleton.UniqueToken ^ (long)DateTime.Now.Millisecond); + XEventPool.Recycle(this); + } + } +} -- cgit v1.1-26-g67d0