summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs
blob: 02963d57b575b48b96f010fedaf6998664dc7492 (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
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);
		}
	}
}