summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSequenceNode.cs
blob: d2998f0236104046eccffb58dffaabb37d8065c0 (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 AIRunTimeSequenceNode : AIRunTimeLogicNode
	{
		public AIRunTimeSequenceNode(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 false;
				}
			}
			return true;
		}
	}
}