Documentation
    Preparing search index...

    Interface ComponentHost

    What a component sees of its host. @fourjs/scene's Node satisfies this structurally; so does ComponentRegistry itself.

    interface ComponentHost {
        addComponent<T extends Component>(component: T): T;
        getComponent<T extends Component>(type: ComponentType<T>): T | undefined;
        removeComponent(component: Component): boolean;
    }

    Implemented by

    Index