Files
zzz_REBIRTH__Utils/Scripts/MinEvents/MinEventActionAnimatorGetBoolRebirth.cs
2025-06-04 16:44:53 +09:30

44 lines
1.3 KiB
C#

using System.Xml.Linq;
public class MinEventActionAnimatorGetBoolRebirth : 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)
{
bool bResult = false;
this.targets[i].emodel.avatarController.TryGetBool(this.property, out bResult);
Log.Out("MinEventActionAnimatorGetBoolRebirth-Execute bResult: " + bResult);
}
}
}
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 = StringParsers.ParseBool(_attribute.Value, 0, -1, true);
return true;
}
}
}
return flag;
}
protected string property;
protected bool value;
}