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