Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

1.5 KB
Raw Blame

API surface — esengine/openpaas

Symbols: 0 public · 0 beta · 4 experimental · 0 deprecated

OpenPaaSEnvironment — interface @experimental

WebAssembly: { instantiateFromFile?(path: string, imports: WebAssembly.Imports): Promise<WasmInstantiateResult>; }
WebSocket: { new (url: string | URL, protocols?: string | string[]): WebSocket; prototype: WebSocket; readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSING: 2; readonly CLOSED: 3; }
XMLHttpRequest: { new (): XMLHttpRequest; prototype: XMLHttpRequest; readonly UNSENT: 0; readonly OPENED: 1; readonly HEADERS_RECEIVED: 2; readonly LOADING: 3; readonly DONE: 4; }
localStorage: Pick<Storage, "getItem" | "key" | "length" | "removeItem" | "setItem">
sud: OpenPaaSHost

OpenPaaSHost — type @experimental

Pick<MiniGameGlobal,
    'createCanvas' | 'createImage' | 'getFileSystemManager' | 'createInnerAudioContext'
    | 'getSystemInfoSync' | 'onTouchStart' | 'onTouchMove' | 'onTouchEnd'
    | 'offTouchStart' | 'offTouchMove' | 'offTouchEnd'> & Partial<Pick<MiniGameGlobal,
    'env' | 'onTouchCancel' | 'offTouchCancel' | 'onShow' | 'offShow' | 'onHide' | 'offHide'
    | 'onError' | 'offError' | 'onWindowResize' | 'showLoading' | 'hideLoading'>>

createOpenPaaSProfile — function @experimental

(environment: OpenPaaSEnvironment): MiniGameProfile

openpaasProfile — const @experimental

MiniGameProfile