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

namespace XMainClient
{
	internal class AIRunTimeSelectorNode : AIRunTimeLogicNode
	{
		public AIRunTimeSelectorNode(XmlElement node) : base(node)
		{
		}

		public override bool Update(XEntity entity)
		{
			for (int i = 0; i < this._list_node.Count; i++)
			{
				bool flag = this._list_node[i].Update(entity);
				if (flag)
				{
					return true;
				}
			}
			return false;
		}
	}
}