MCPcopy Create free account
hub / github.com/esengine/esengine / constructor

Function constructor

packages/core/src/ECS/Systems/WorkerEntitySystem.ts:185–194  ·  view source on GitHub ↗
(matcher?: Matcher, config: IWorkerSystemConfig = {})

Source from the content-addressed store, hash-verified

183 // =========================================================================
184
185 constructor(matcher?: Matcher, config: IWorkerSystemConfig = {}) {
186 super(matcher);
187
188 this.platformAdapter = PlatformManager.getInstance().getAdapter();
189 this.config = this.resolveConfig(config);
190
191 if (this.config.enableWorker && this.isWorkerSupported()) {
192 this.initializeWorkerSystem();
193 }
194 }
195
196 // =========================================================================
197 // 配置解析 | Config Resolution

Callers

nothing calls this directly

Calls 3

getAdapterMethod · 0.80
getInstanceMethod · 0.45
isWorkerSupportedMethod · 0.45

Tested by

no test coverage detected