@bloopjs/engine 0.0.0 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mod.d.ts DELETED
@@ -1,37 +0,0 @@
1
- import type { PlatformEvent } from "./events";
2
- import type { Key, MouseButton } from "./inputs";
3
- export type * from "./inputs";
4
- export type * from "./events";
5
- export * as EngineEvents from "./events";
6
- export * as EngineInputs from "./inputs";
7
- export declare const DEFAULT_WASM_URL: URL;
8
- export type WasmEngine = {
9
- register_systems: (cb_handle: number) => void;
10
- step: (ms: number) => void;
11
- };
12
- export type SystemsCallback = (events: PlatformEvent[]) => void;
13
- export type MountOpts = {
14
- wasmUrl?: URL;
15
- systemsCallback: SystemsCallback;
16
- };
17
- export type Runtime = {
18
- step: (ms?: number) => void;
19
- };
20
- /**
21
- * Emits platform events to the engine
22
- */
23
- export type Emitter = {
24
- keydown: (key: Key) => void;
25
- keyup: (key: Key) => void;
26
- mousemove(x: number, y: number): void;
27
- mousedown(button: MouseButton): void;
28
- mouseup(button: MouseButton): void;
29
- mousewheel(x: number, y: number): void;
30
- };
31
- export type MountResult = {
32
- runtime: Runtime;
33
- wasm: WasmEngine;
34
- emitter: Emitter;
35
- };
36
- export declare function mount(opts: MountOpts): Promise<MountResult>;
37
- //# sourceMappingURL=mod.d.ts.map
package/dist/mod.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../js/mod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACjD,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,UAAU,CAAC;AAE9B,OAAO,KAAK,YAAY,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,YAAY,MAAM,UAAU,CAAC;AAEzC,eAAO,MAAM,gBAAgB,KA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