summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XAIEventArgs.cs
blob: 1ab2eb41258181846035fb6dcdf234450d89b689 (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
40
41
42
43
using System;
using UnityEngine;

namespace XMainClient
{
	internal class XAIEventArgs : XEventArgs
	{
		public int EventType;

		public string EventArg;

		public int TypeId;

		public int SkillId;

		public Vector3 Pos;

		public ulong SenderUID;

		public XAIEventArgs()
		{
			this._eDefine = XEventDefine.XEvent_AIEvent;
			this.EventArg = "";
			this.EventType = 0;
			this.TypeId = 0;
			this.SkillId = 0;
			this.Pos = Vector3.zero;
			this.SenderUID = 0UL;
		}

		public override void Recycle()
		{
			base.Recycle();
			this.EventArg = "";
			this.EventType = 0;
			this.TypeId = 0;
			this.SkillId = 0;
			this.Pos = Vector3.zero;
			this.SenderUID = 0UL;
			XEventPool<XAIEventArgs>.Recycle(this);
		}
	}
}