using Godot;
namespace Rokojori
{
/**
Executes multiple actions (Action) at once.
The ActionList, which is an Action itself, executes all actions stored in the member 'actions' and also child nodes
that extend Action, when 'triggerDirectChildren' is checked.
*/
[GlobalClass, Icon("res://addons/rokojori_action_library/Icons/ActionList.svg") ]
public partial class ActionList : Action
{
/** Actions to execute*/
[Export]
public Action[] actions;
/** Whether to execute Action child nodes*/
[Export]
public bool triggerDirectChildren = true;
protected override void _OnTrigger()
{
Action.TriggerAll( actions, this, triggerDirectChildren );
}
}
}