summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs
blob: e5574097015547aaf220faee3b2739fc517dede2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Xml;
using XUtliPoolLib;

namespace XMainClient
{
	internal class AIRuntimeDoCastSkill : AIRunTimeNodeAction
	{
		private string _target_name;

		public AIRuntimeDoCastSkill(XmlElement node) : base(node)
		{
			this._target_name = node.GetAttribute("Shared_TargetName");
		}

		public override bool Update(XEntity entity)
		{
			return XSingleton<XAISkill>.singleton.DoCastSkill(entity, entity.AI.Target);
		}
	}
}