using Godot; using System.Reflection; using System.Collections.Generic; using System.Text; namespace Rokojori { public class AudioEventOutput : AudioEvent { public AudioEventOutput( AudioProcessor p, bool autoClear = true ):base( p, autoClear ) {} List> _inputs = new List>(); public List> connected => _inputs; public bool IsConnectedTo( AudioEventInput input ) { return _inputs.Contains( input ); } public void ConnectTo( AudioEventInput input ) { _inputs.Add( input ); input._GetConnectedFrom( this ); } public void Disconnect( AudioEventInput input ) { _inputs.Remove( input ); input._GetDisconnectedFrom( this ); } public void Push( T t ) { _events.Add( t ); } public List GetEventsList() { return _events; } } }