Preparing search index...

    Base class for background plugin services; extend to create a service with start/stop lifecycle and access to the plugin system.

        // CoreService manages its lifecycle through start() and stop().
    // In start(), connect to signals and store the connections.
    // In stop(), disconnect them to avoid leaks.

    const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;

    const conn = model.onProjectChanged.connect(() => {
    console.log('Project changed — new project loaded');
    });
    this.connections.push(conn);
    console.log(`Connected to model.onProjectChanged signal`);

    const scene = model.project.scene;
    const so = scene.createSceneObject('CoreServiceDemo');
    console.log(`Created scene object: ${so.name}`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    id: string
    pluginSystem: PluginSystem

    The plugin system instance used to find and access registered interfaces.

    Methods

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object refers to the same instance as the given object.

      Parameters

      Returns boolean

    • Initialize the service, set up event connections, and begin background operations.

      Returns void

    • Tear down event connections and stop all background operations.

      Returns void