blob: 0972c47c517c3a301f9b1b2556059a98c4aa1cb8 (
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;
using XUtliPoolLib;
namespace XMainClient
{
internal class AIRunTimeIsQTEState : AIRunTimeNodeCondition
{
private int _qte_state = 0;
public AIRunTimeIsQTEState(XmlElement node) : base(node)
{
bool flag = node.GetAttribute("QTEState") != "";
if (flag)
{
this._qte_state = int.Parse(node.GetAttribute("QTEState"));
}
}
public override bool Update(XEntity entity)
{
return XSingleton<XAIGeneralMgr>.singleton.HasQTE(entity.ID, this._qte_state);
}
}
}
|