using Godot;
using Godot.Collections;
namespace Babushka.scripts.CSharp.Low_Code.Events;
///
/// Raises one or more s from the scene.
///
public partial class EventRaiser : Node
{
///
/// The s to call
///
[Export] Array _eventResources;
///
/// Raises all s present in .
///
public void RaiseEvents()
{
foreach (var eventRes in _eventResources)
{
eventRes.Raise();
}
}
///
/// Raises at index.
///
///
public void RaiseEvent(int index)
{
_eventResources[index].Raise();
}
}