UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

49 lines 1.07 kB
export default WorkerBuilder; declare class WorkerBuilder { /** * * @type {string[]} */ imports: string[]; methods: {}; /** * * @type {{f:function, name:string}[]} */ functions: { f: Function; name: string; }[]; preamble: LineBuilder; /** * * @param {string} code */ addCode(code: string): void; /** * * @param {string} name * @param {function|string} method */ addMethod(name: string, method: Function | string): void; /** * NOTE: take care when using minifiers as they may mangle function names * @deprecated * @param name * @param {function} f */ importFunction(name: any, f: Function): void; /** * * @param {string} path */ importScript(path: string): void; /** * * @returns {WorkerProxy} */ build(): WorkerProxy; } import LineBuilder from "../../codegen/LineBuilder.js"; import WorkerProxy from "./WorkerProxy.js"; //# sourceMappingURL=WorkerBuilder.d.ts.map