UNPKG

@polygonjs/polygonjs

Version:

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

32 lines (31 loc) 725 B
"use strict"; import { CoreFeaturesController } from "./../../../../core/FeaturesController"; export class ImportReport { constructor(_sceneImporter) { this._warnings = []; this._readonly = false; this._loadedWithoutAssemblers = false; } warnings() { return this._warnings; } readonly() { return this._readonly; } loadedWithoutAssemblers() { return this._loadedWithoutAssemblers; } reset() { this._warnings = []; } markAsLoadedWithoutAssemblers() { this._readonly = true; this._loadedWithoutAssemblers = true; } addWarning(message) { this._warnings.push(message); if (CoreFeaturesController.debugLoadProgress()) { console.warn(message); } } }