Upload from upload_mods.ps1
This commit is contained in:
43
Scripts/MinEvents/MinEventActionAnimatorGetBoolRebirth.cs
Normal file
43
Scripts/MinEvents/MinEventActionAnimatorGetBoolRebirth.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user