44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
using System.Xml.Linq;
|
|
|
|
public class MinEventActionAnimatorGetIntRebirth : MinEventActionTargetedBase
|
|
{
|
|
public override void Execute(MinEventParams _params)
|
|
{
|
|
for (int i = 0; i < this.targets.Count; i++)
|
|
{
|
|
if (this.targets[i].emodel != null && this.targets[i].emodel.avatarController != null)
|
|
{
|
|
int numResult = 0;
|
|
this.targets[i].emodel.avatarController.TryGetInt(this.property, out numResult);
|
|
//Log.Out("MinEventActionAnimatorGetIntRebirth-Execute numResult: " + numResult);
|
|
}
|
|
}
|
|
}
|
|
|
|
public override bool ParseXmlAttribute(XAttribute _attribute)
|
|
{
|
|
bool flag = base.ParseXmlAttribute(_attribute);
|
|
if (!flag)
|
|
{
|
|
string name = _attribute.Name.LocalName;
|
|
if (name != null)
|
|
{
|
|
if (name == "property")
|
|
{
|
|
this.property = _attribute.Value;
|
|
return true;
|
|
}
|
|
if (name == "value")
|
|
{
|
|
this.value = int.Parse(_attribute.Value);
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return flag;
|
|
}
|
|
|
|
protected string property;
|
|
protected int value;
|
|
}
|