UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

28 lines (27 loc) 931 B
"use strict"; import { AllNodesRegister } from "./nodes/All"; import { AllExpressionsRegister } from "./expressions/All"; import { AllAssemblersRegister } from "./assemblers/All"; import { AllCamerasRegister } from "./cameras/All"; import { AllNamedFunctionRegister } from "./functions/All"; import { Poly } from "../../Poly"; import { CoreFeaturesController } from "../../../core/FeaturesController"; import { AllModulesRegister } from "./modules/All"; export class AllRegister { static async registerAll() { if (this._started) { return; } this._started = true; AllNodesRegister.run(Poly); AllCamerasRegister.run(Poly); AllExpressionsRegister.run(Poly); AllNamedFunctionRegister.run(Poly); const noAssemblers = CoreFeaturesController.noAssemblers(); if (!noAssemblers) { AllAssemblersRegister.run(Poly); } AllModulesRegister.run(Poly); } } AllRegister._started = false;