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

Function getPlatformEnum

packages/editor-app/src/stores/BuildSettingsStore.ts:148–159  ·  view source on GitHub ↗
(platformType: PlatformType)

Source from the content-addressed store, hash-verified

146// ============= Helper Functions =============
147
148const getPlatformEnum = (platformType: PlatformType): BuildPlatform => {
149 const platformMap: Record<PlatformType, BuildPlatform> = {
150 'web': BuildPlatform.Web,
151 'wechat-minigame': BuildPlatform.WeChatMiniGame,
152 'windows': BuildPlatform.Desktop,
153 'macos': BuildPlatform.Desktop,
154 'linux': BuildPlatform.Desktop,
155 'android': BuildPlatform.Android,
156 'ios': BuildPlatform.iOS
157 };
158 return platformMap[platformType];
159};
160
161// ============= Store =============
162

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected