mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
ModuleSetup.tooling() gives a ToolingRegistry, where a module registers SceneViews: a catalogue of entries, each with variants the studio draws in 3D, built from the pack for a world. View ids follow the module's id and are unique; the frozen catalogue lists them by id.
20 lines
692 B
Java
20 lines
692 B
Java
package com.volmit;
|
|
|
|
import com.volmit.stage.StageGraph;
|
|
import com.volmit.tooling.ToolingRegistry;
|
|
|
|
/** What a module gets in {@link IrisModule#setup}: the stage graph it defines its stages in, the registry for
|
|
* everything else it adds to generation, the registry for its studio tools, and its own log. Stages and registrations
|
|
* are accepted only while {@code setup} runs; the log may be kept and used later, such as from lifecycle hooks.
|
|
*/
|
|
public interface ModuleSetup {
|
|
StageGraph stages();
|
|
|
|
FeatureRegistry registry();
|
|
|
|
ToolingRegistry tooling();
|
|
|
|
/** This module's log, the same one its stages and lifecycle hooks see through their world. */
|
|
ModuleLog log();
|
|
}
|