summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs
blob: 77860e1d08f57c618f86751686fe5568cafc562c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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);
		}
	}
}