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

Method getAdapter

packages/core/src/Platform/PlatformManager.ts:32–37  ·  view source on GitHub ↗

* @zh 获取当前平台适配器 * @en Get current platform adapter

()

Source from the content-addressed store, hash-verified

30 * @en Get current platform adapter
31 */
32 public getAdapter(): IPlatformAdapter {
33 if (!this._adapter) {
34 throw new Error('平台适配器未注册,请调用 registerAdapter() 注册适配器');
35 }
36 return this._adapter;
37 }
38
39 /**
40 * @zh 注册平台适配器

Callers 2

getCurrentAdapterFunction · 0.80
constructorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected