using Godot; namespace Rokojori { [GlobalClass, Tool, Icon("res://addons/rokojori_action_library/Icons/RJOnEvent.svg") ] public partial class OnProcess : Node { /** Actions to execute*/ [Export] public RJAction[] actions; /** Whether to execute RJAction child nodes*/ [Export] public bool triggerDirectChildren = true; [Export] public bool executeInEditor = false; public override void _Process( double delta ) { if ( Engine.IsEditorHint() && ! executeInEditor ) { return; } Actions.TriggerAll( actions, this, triggerDirectChildren ); } } }