UNPKG

the-world-engine

Version:

three.js based, unity like game engine for browser

32 lines (30 loc) 680 B
import { SceneBuilder } from "./SceneBuilder"; import { GameSetting } from "./setting/GameSetting"; export class Bootstrapper { h; Y; Z; T; constructor(t, e) { this.h = t.instantiater; this.Y = e || null; this.Z = new SceneBuilder(t.sceneProcessor); this.T = new GameSetting(GameSetting.createDefaultObject()); } getGameSettingObject() { Object.freeze(this.T); return this.T.make(); } get instantiater() { return this.h; } get interopObject() { return this.Y; } get sceneBuilder() { return this.Z; } get setting() { return this.T; } }