#include "Component.h" #include "Synth.h" #include "EngineImpl.h" Soundwich::Component::Component( Synth* synth, const Util::String& name ) { _synth = synth; _name = name; _renderDepth = -1; _debugLogging = false; _synth->GetComponents( ).Add( GetName( ), this ); } void Soundwich::Component::AddTick( ) { _synth->AddTick( this ); } void Soundwich::Component::RemoveTick( ) { _synth->RemoveTick( this ); } void Soundwich::Component::AddRender( ) { _synth->AddRender( this, _renderDepth ); } void Soundwich::Component::RemoveRender( ) { _synth->RemoveRender( this, _renderDepth ); } Util::TextWriter& Soundwich::Component::GetLog( ) { return GetEngine( )->GetLog( ); }