summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionRotate.cs
blob: 8ab449537fe0b76b9b0be869d0af9d24590d246a (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
using System;
using System.Xml;
using XUtliPoolLib;

namespace XMainClient
{
	internal class AIRuntimeActionRotate : AIRunTimeNodeAction
	{
		public float _rot_degree;

		public float _rot_speed;

		public int _rot_type;

		public AIRuntimeActionRotate(XmlElement node) : base(node)
		{
			this._rot_degree = float.Parse(node.GetAttribute("RotDegree"));
			this._rot_speed = float.Parse(node.GetAttribute("RotSpeed"));
			this._rot_type = int.Parse(node.GetAttribute("RotType"));
		}

		public override bool Update(XEntity entity)
		{
			return XSingleton<XAIMove>.singleton.ActionRotate(entity, this._rot_degree, this._rot_speed, this._rot_type);
		}
	}
}