UNPKG

@polygonjs/polygonjs

Version:

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

30 lines (26 loc) 878 B
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 { private static _started = false; 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); } }