MCPcopy Create free account
hub / github.com/SilverTree7622/Phaser3_GUI_Inspector / constructor

Method constructor

js/main.js:50–67  ·  view source on GitHub ↗
(_tmpHandOverObj)

Source from the content-addressed store, hash-verified

48
49export class Main {
50 constructor(_tmpHandOverObj) {
51 this.scene = _tmpHandOverObj.scene;
52 this.libs = new LibClass(_tmpHandOverObj);
53 // Console
54 this.initConsole(_tmpHandOverObj);
55 // Manager Class
56 this.manager = {};
57 this.manager.typeSort = new TypeSortManager(_tmpHandOverObj.scene);
58 this.manager.folder = new FolderManager(this.manager.typeSort);
59 this.manager.debugBox = new DebugBoxManager();
60 this.manager.camera = new CameraManager();
61 this.manager.input = new InputManager();
62 // GUIs
63 this.mainGUI = this.libs.getGUILib();
64 this.sideGUI = this.libs.getGUISide();
65 this.GUI = new GUIClass(this);
66 this.Side = new SideGUIClass(this);
67 }
68 create(_scene) {
69 // Manager
70 this.manager.typeSort.create(this.manager);

Callers

nothing calls this directly

Calls 3

initConsoleMethod · 0.95
getGUILibMethod · 0.80
getGUISideMethod · 0.80

Tested by

no test coverage detected