@flare-engine/react 0.2.1 → 0.3.0
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/LICENSE +201 -21
- package/NOTICE +2 -0
- package/README.md +29 -13
- package/dist/index.d.mts +199 -184
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +199 -184
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +734 -522
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +713 -494
- package/dist/index.mjs.map +1 -1
- package/package.json +39 -22
package/dist/index.d.ts
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { AssetLoader, AssetManager, SkImageLike, SkiaAtlasModuleLike } from "@flare-engine/assets";
|
|
2
|
+
import { AudioManager } from "@flare-engine/audio";
|
|
3
|
+
import { GameLoop } from "@flare-engine/core";
|
|
4
|
+
import { Query, World } from "@flare-engine/ecs";
|
|
5
|
+
import { InputManager, VirtualButtonState, VirtualJoystickConfig, VirtualJoystickState } from "@flare-engine/input";
|
|
6
|
+
import { Camera2D, FrameRenderer, FrameRendererCompiledPass, FrameRendererModule, FrameRendererPostFxChain, FrameRendererPostFxRuntime, Renderer, SpriteBatch } from "@flare-engine/render";
|
|
7
|
+
import { SceneManager } from "@flare-engine/scene";
|
|
8
|
+
import { SkColor, SkImage, SkImageFilter, SkRuntimeEffect } from "@shopify/react-native-skia";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { ViewStyle } from "react-native";
|
|
11
|
+
import { Signal } from "@flare-engine/events";
|
|
12
|
+
//#region src/game-context.d.ts
|
|
14
13
|
/** The value exposed via GameContext. */
|
|
15
14
|
interface GameContextValue {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
/** ECS world. */
|
|
16
|
+
world: World;
|
|
17
|
+
/** Primary 2D camera. */
|
|
18
|
+
camera: Camera2D;
|
|
19
|
+
/** Input manager (pointer, touches). */
|
|
20
|
+
input: InputManager;
|
|
21
|
+
/** Audio manager. */
|
|
22
|
+
audio: AudioManager;
|
|
23
|
+
/** Asset manager. */
|
|
24
|
+
assets: AssetManager;
|
|
25
|
+
/** Scene manager. */
|
|
26
|
+
scenes: SceneManager;
|
|
27
|
+
/** Game loop. */
|
|
28
|
+
loop: GameLoop;
|
|
29
|
+
/** Frame renderer (owns the draw phase). */
|
|
30
|
+
renderer: Renderer;
|
|
31
|
+
/** Sprite batch — queue `draw()` calls from systems or custom logic. */
|
|
32
|
+
batch: SpriteBatch;
|
|
34
33
|
}
|
|
35
34
|
/**
|
|
36
35
|
* React context that provides access to core game objects.
|
|
37
36
|
* Null if accessed outside a <GameView>.
|
|
38
37
|
*/
|
|
39
|
-
declare const GameContext:
|
|
40
|
-
|
|
38
|
+
declare const GameContext: import("react").Context<GameContextValue | null>;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/skia-bridge.d.ts
|
|
41
41
|
/** Structural canvas — minimal subset needed for offscreen rendering. */
|
|
42
42
|
interface SkOffscreenCanvasLike {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
drawPicture(picture: unknown): void;
|
|
44
|
+
drawImageRect(image: unknown, src: unknown, dst: unknown, paint: unknown): void;
|
|
45
|
+
drawRect(rect: unknown, paint: unknown): void;
|
|
46
|
+
clear(color: unknown): void;
|
|
47
47
|
}
|
|
48
48
|
/** Structural canvas surface — minimal subset needed for offscreen capture. */
|
|
49
49
|
interface SkSurfaceLike {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
getCanvas(): SkOffscreenCanvasLike;
|
|
51
|
+
makeImageSnapshot(): SkImageLike;
|
|
52
|
+
/** Force queued draws to execute. Required for GPU-backed surfaces before
|
|
53
|
+
* makeImageSnapshot is called, otherwise the snapshot may capture
|
|
54
|
+
* uninitialized texture content. See Skia's SkSurface.flush docs. */
|
|
55
|
+
flush(): void;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* A single post-processing pass descriptor built by `buildPostFxPasses`.
|
|
59
59
|
* GameView maps each descriptor to a `<RuntimeShader>` child of `<Image>`.
|
|
60
60
|
*/
|
|
61
61
|
interface PostFxPassDescriptor {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
/** Stable id, used as React key. */
|
|
63
|
+
readonly id: string;
|
|
64
|
+
/** The compiled SkRuntimeEffect passed as `<RuntimeShader source={…}/>`. */
|
|
65
|
+
readonly source: SkRuntimeEffect;
|
|
66
|
+
/**
|
|
67
|
+
* Uniform map keyed by SkSL uniform name. Vector uniforms are `number[]`
|
|
68
|
+
* whose length equals `columns * rows`; scalar uniforms are `number`.
|
|
69
|
+
* Built by zipping `shader.getUniformName(i)` → sliced Float32Array values.
|
|
70
|
+
*/
|
|
71
|
+
readonly uniforms: Record<string, number | readonly number[]>;
|
|
72
|
+
/**
|
|
73
|
+
* Extra child shader slots beyond the implicit scene sampler. Empty for every
|
|
74
|
+
* built-in PT effect; only color-grading-lut would populate it. Each entry
|
|
75
|
+
* is an SkImage that GameView wraps in `<ImageShader>`.
|
|
76
|
+
*/
|
|
77
|
+
readonly children: readonly SkImage[];
|
|
78
78
|
}
|
|
79
79
|
/** A single axis-aligned rectangle shape to draw into an offscreen surface. */
|
|
80
80
|
interface ShapeRect {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
readonly x: number;
|
|
82
|
+
readonly y: number;
|
|
83
|
+
readonly w: number;
|
|
84
|
+
readonly h: number;
|
|
85
|
+
/** ARGB packed integer: 0xAARRGGBB */
|
|
86
|
+
readonly color: number;
|
|
87
87
|
}
|
|
88
88
|
/** Options for `renderShapesToImage`. */
|
|
89
89
|
interface RenderShapesOpts {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
readonly width: number;
|
|
91
|
+
readonly height: number;
|
|
92
|
+
/** ARGB packed integer: 0xAARRGGBB */
|
|
93
|
+
readonly clearColor: number;
|
|
94
|
+
readonly shapes: readonly ShapeRect[];
|
|
95
95
|
}
|
|
96
96
|
/**
|
|
97
97
|
* Narrow view of the Skia module — only the factories the bridge needs.
|
|
@@ -102,17 +102,17 @@ interface RenderShapesOpts {
|
|
|
102
102
|
* native Surface and ImageFilter that are not needed in render-web.
|
|
103
103
|
*/
|
|
104
104
|
type SkiaModuleLike = FrameRendererModule & {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
105
|
+
RuntimeEffect?: {
|
|
106
|
+
Make(sksl: string): SkRuntimeEffect | null;
|
|
107
|
+
};
|
|
108
|
+
Surface?: {
|
|
109
|
+
Make(width: number, height: number): SkSurfaceLike | null;
|
|
110
|
+
MakeOffscreen?(width: number, height: number): SkSurfaceLike | null;
|
|
111
|
+
};
|
|
112
|
+
/** Optional — present on device builds; absent in CPU/test mocks (drop-shadow falls back to the default paint). */
|
|
113
|
+
ImageFilter?: {
|
|
114
|
+
MakeDropShadow(dx: number, dy: number, sigmaX: number, sigmaY: number, color: SkColor, input: SkImageFilter | null): SkImageFilter;
|
|
115
|
+
};
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
118
|
* A single compiled postfx pass descriptor produced by the runtime.
|
|
@@ -150,16 +150,18 @@ declare function createSkiaFrameRenderer(Skia: SkiaModuleLike): SkiaFrameRendere
|
|
|
150
150
|
* returned image themselves.
|
|
151
151
|
*/
|
|
152
152
|
declare function renderShapesToImage(skia: SkiaModuleLike, opts: RenderShapesOpts): SkImageLike | null;
|
|
153
|
-
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/safe-area.d.ts
|
|
154
155
|
interface SafeArea {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
top: number;
|
|
157
|
+
right: number;
|
|
158
|
+
bottom: number;
|
|
159
|
+
left: number;
|
|
159
160
|
}
|
|
160
|
-
declare const SafeAreaContext:
|
|
161
|
+
declare const SafeAreaContext: import("react").Context<SafeArea | null>;
|
|
161
162
|
declare function useSafeArea(): SafeArea;
|
|
162
|
-
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/game-view.d.ts
|
|
163
165
|
/** Render hook invoked during the frame — receives the game context and
|
|
164
166
|
* the active Skia canvas for direct draw calls. Hooks run between
|
|
165
167
|
* `renderer.applyCamera()` and `renderer.end()`, so the camera transform
|
|
@@ -174,52 +176,52 @@ type RenderHook = (ctx: GameContextValue, canvas: unknown) => void;
|
|
|
174
176
|
type PostFxRenderHook = (ctx: GameContextValue, canvas: unknown, bridge: SkiaFrameRenderer | null) => void;
|
|
175
177
|
/** Configuration passed to <GameView>. */
|
|
176
178
|
interface GameConfig {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
179
|
+
/** Fixed timestep in seconds (default 1/60). */
|
|
180
|
+
fixedDt?: number;
|
|
181
|
+
/** Maximum dt cap in seconds (default 0.25). */
|
|
182
|
+
maxDt?: number;
|
|
183
|
+
/** Background clear color as 32-bit ARGB int (default 0xFF000000). */
|
|
184
|
+
clearColor?: number;
|
|
185
|
+
/** Asset loader function — injected into AssetManager at construction. */
|
|
186
|
+
assetLoader?: AssetLoader;
|
|
187
|
+
/** Called after camera transform and before the sprite render system.
|
|
188
|
+
* Intended for tilemap / background layer rendering. */
|
|
189
|
+
onRenderBackground?: RenderHook;
|
|
190
|
+
/** Called after the sprite batch has been flushed, before `renderer.end()`.
|
|
191
|
+
* Receives the bridge as 3rd arg so the hook can call
|
|
192
|
+
* `bridge.setPostFxBinding(runtime, chain)` to register the postfx runtime
|
|
193
|
+
* and chain for the current frame. */
|
|
194
|
+
onRenderPostFx?: PostFxRenderHook;
|
|
195
|
+
/**
|
|
196
|
+
* Promote the underlying Skia surface from a TextureView (default) to a
|
|
197
|
+
* SurfaceView on Android. With `opaque: true`, SurfaceView paints in a
|
|
198
|
+
* separate compositing layer below the regular RN view tree, which lets
|
|
199
|
+
* full-screen RN overlays (HUDs, menus) render on top without needing
|
|
200
|
+
* elevation/zIndex tricks.
|
|
201
|
+
*
|
|
202
|
+
* Without this, RN-Skia's TextureView can clip overlapping full-screen
|
|
203
|
+
* RN siblings on certain Android devices/Fabric configurations.
|
|
204
|
+
*
|
|
205
|
+
* Implies the canvas content is opaque — the clearColor's alpha must be
|
|
206
|
+
* fully opaque (0xFF). Defaults to `false` to preserve the current
|
|
207
|
+
* iOS-equivalent behavior.
|
|
208
|
+
*/
|
|
209
|
+
opaque?: boolean;
|
|
208
210
|
}
|
|
209
211
|
/** Props for the <GameView> component. */
|
|
210
212
|
interface GameViewProps {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
213
|
+
/** Game configuration. */
|
|
214
|
+
config?: GameConfig;
|
|
215
|
+
/** Called once the game context is ready (loop not yet started). */
|
|
216
|
+
onReady?: (ctx: GameContextValue) => void;
|
|
217
|
+
/** Style applied to the outer View container. */
|
|
218
|
+
style?: ViewStyle;
|
|
219
|
+
/** Optional overlay children (e.g. VirtualJoystick, VirtualButton). */
|
|
220
|
+
children?: React.ReactNode;
|
|
221
|
+
/** Explicit safe-area insets. If omitted, resolved from react-native-safe-area-context
|
|
222
|
+
* via `useSafeAreaInsets()` (requires a `<SafeAreaProvider>` ancestor; falls back to
|
|
223
|
+
* zero insets when no provider is mounted). */
|
|
224
|
+
safeArea?: SafeArea;
|
|
223
225
|
}
|
|
224
226
|
/**
|
|
225
227
|
* GameView — root component that sets up the Skia canvas, game loop,
|
|
@@ -228,8 +230,9 @@ interface GameViewProps {
|
|
|
228
230
|
* Overlay controls (VirtualJoystick, VirtualButton) should be placed
|
|
229
231
|
* as children; they render on top of the Skia canvas.
|
|
230
232
|
*/
|
|
231
|
-
declare function GameView({ config, onReady, style, children, safeArea
|
|
232
|
-
|
|
233
|
+
declare function GameView({ config, onReady, style, children, safeArea }: GameViewProps): React.ReactElement;
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/hooks.d.ts
|
|
233
236
|
/**
|
|
234
237
|
* useGame — returns the GameContextValue from the nearest <GameView>.
|
|
235
238
|
* Throws if called outside a <GameView>.
|
|
@@ -250,37 +253,52 @@ declare function useEntity(query: Query): readonly number[];
|
|
|
250
253
|
* @param callback Function called each frame with dt in seconds.
|
|
251
254
|
*/
|
|
252
255
|
declare function useGameLoop(callback: (dt: number) => void): void;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region src/loading-screen.d.ts
|
|
258
|
+
/** Props for the <LoadingScreen> component. */
|
|
259
|
+
interface LoadingScreenProps {
|
|
260
|
+
/** Progress in [0, 1]. Values outside this range are clamped. */
|
|
261
|
+
progress: number;
|
|
262
|
+
/** Style applied to the outer container (covers parent by default). */
|
|
263
|
+
style?: ViewStyle;
|
|
264
|
+
/** Filled portion color. */
|
|
265
|
+
barColor?: string;
|
|
266
|
+
/** Track color. */
|
|
267
|
+
trackColor?: string;
|
|
268
|
+
/** Background color behind the track. */
|
|
269
|
+
backgroundColor?: string;
|
|
266
270
|
}
|
|
267
271
|
/**
|
|
268
|
-
*
|
|
272
|
+
* LoadingScreen — full-screen asset-load overlay.
|
|
269
273
|
*
|
|
270
|
-
* Renders
|
|
271
|
-
*
|
|
272
|
-
*
|
|
274
|
+
* Renders before `<GameView>` mounts its Skia canvas (or alongside it
|
|
275
|
+
* while `AssetManager.load()` resolves). Pure RN Views so it works
|
|
276
|
+
* without a live Skia context. Consumers drive `progress` from the
|
|
277
|
+
* AssetManager progress callback.
|
|
278
|
+
*/
|
|
279
|
+
declare function LoadingScreen({ progress, style, barColor, trackColor, backgroundColor }: LoadingScreenProps): React.ReactElement;
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/overlay-hooks.d.ts
|
|
282
|
+
declare function useOverlayFade(visible: boolean, durationMs?: number): number;
|
|
283
|
+
declare function useCountUp(target: number, durationMs?: number): number;
|
|
284
|
+
declare function useSignalState<T>(signal: Signal<T>, initial: T): T;
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region src/skia-atlas.d.ts
|
|
287
|
+
/**
|
|
288
|
+
* The RN-Skia module adapted to the engine's structural atlas interface.
|
|
289
|
+
* Centralises the one boundary assertion so template code stays cast-free.
|
|
273
290
|
*/
|
|
274
|
-
declare
|
|
275
|
-
|
|
291
|
+
declare const skiaAtlasModule: SkiaAtlasModuleLike;
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region src/virtual-button.d.ts
|
|
276
294
|
/** Props for the <VirtualButton> component. */
|
|
277
295
|
interface VirtualButtonProps {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
296
|
+
/** Called on each state change. */
|
|
297
|
+
onStateChange?: (state: VirtualButtonState) => void;
|
|
298
|
+
/** Style applied to the button. */
|
|
299
|
+
style?: ViewStyle;
|
|
300
|
+
/** Button label / overlay content. */
|
|
301
|
+
children?: React.ReactNode;
|
|
284
302
|
}
|
|
285
303
|
/**
|
|
286
304
|
* VirtualButton — an on-screen button overlay component.
|
|
@@ -288,33 +306,30 @@ interface VirtualButtonProps {
|
|
|
288
306
|
* Claims the React Native touch responder so press/release fire reliably
|
|
289
307
|
* even when an ancestor (e.g. <GameView>) also claims the responder.
|
|
290
308
|
*/
|
|
291
|
-
declare function VirtualButton({ onStateChange, style, children
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
309
|
+
declare function VirtualButton({ onStateChange, style, children }: VirtualButtonProps): React.ReactElement;
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/virtual-joystick.d.ts
|
|
312
|
+
/** Props for the <VirtualJoystick> component. */
|
|
313
|
+
interface VirtualJoystickProps {
|
|
314
|
+
/** Joystick configuration (dead zone, max radius). */
|
|
315
|
+
config?: VirtualJoystickConfig;
|
|
316
|
+
/** Called on each state change. */
|
|
317
|
+
onStateChange?: (state: VirtualJoystickState) => void;
|
|
318
|
+
/** Style applied to the outer container. */
|
|
319
|
+
style?: ViewStyle;
|
|
320
|
+
/** Custom node rendered in place of the default base circle View. */
|
|
321
|
+
base?: React.ReactNode;
|
|
322
|
+
/** Custom node rendered in place of the default knob View. */
|
|
323
|
+
thumb?: React.ReactNode;
|
|
305
324
|
}
|
|
306
325
|
/**
|
|
307
|
-
*
|
|
326
|
+
* VirtualJoystick — an on-screen joystick overlay component.
|
|
308
327
|
*
|
|
309
|
-
* Renders
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
* AssetManager progress callback.
|
|
328
|
+
* Renders a base circle and a knob that follows the user's touch.
|
|
329
|
+
* Claims the React Native touch responder so children of a parent that
|
|
330
|
+
* also claims the responder (e.g. <GameView>) still receive move/end events.
|
|
313
331
|
*/
|
|
314
|
-
declare function
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
declare function useSignalState<T>(signal: Signal<T>, initial: T): T;
|
|
319
|
-
|
|
320
|
-
export { type CompiledPassLike, type GameConfig, GameContext, type GameContextValue, GameView, type GameViewProps, LoadingScreen, type LoadingScreenProps, type PostFxChainLike, type PostFxPassDescriptor, type PostFxRenderHook, type PostFxRuntimeLike, type RenderHook, type RenderShapesOpts, type SafeArea, SafeAreaContext, type ShapeRect, type SkOffscreenCanvasLike, type SkiaFrameRenderer, type SkiaModuleLike, VirtualButton, type VirtualButtonProps, VirtualJoystick, type VirtualJoystickProps, createSkiaFrameRenderer, renderShapesToImage, useCountUp, useEntity, useGame, useGameLoop, useOverlayFade, useSafeArea, useSignalState };
|
|
332
|
+
declare function VirtualJoystick({ config, onStateChange, style, base, thumb }: VirtualJoystickProps): React.ReactElement;
|
|
333
|
+
//#endregion
|
|
334
|
+
export { type CompiledPassLike, type GameConfig, GameContext, type GameContextValue, GameView, type GameViewProps, LoadingScreen, type LoadingScreenProps, type PostFxChainLike, type PostFxPassDescriptor, type PostFxRenderHook, type PostFxRuntimeLike, type RenderHook, type RenderShapesOpts, type SafeArea, SafeAreaContext, type ShapeRect, type SkOffscreenCanvasLike, type SkiaFrameRenderer, type SkiaModuleLike, VirtualButton, type VirtualButtonProps, VirtualJoystick, type VirtualJoystickProps, createSkiaFrameRenderer, renderShapesToImage, skiaAtlasModule, useCountUp, useEntity, useGame, useGameLoop, useOverlayFade, useSafeArea, useSignalState };
|
|
335
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/game-context.ts","../src/skia-bridge.ts","../src/safe-area.ts","../src/game-view.tsx","../src/hooks.ts","../src/loading-screen.tsx","../src/overlay-hooks.ts","../src/skia-atlas.ts","../src/virtual-button.tsx","../src/virtual-joystick.tsx"],"mappings":";;;;;;;;;;;;;UAUiB;;EAEf,OAAO;;EAEP,QAAQ;;EAER,OAAO;;EAEP,OAAO;;EAEP,QAAQ;;EAER,QAAQ;;EAER,MAAM;;EAEN,UAAU;;EAEV,OAAO;;;;;;cAOI,6BAAW,QAAA;;;;UCrBP;EACf,YAAY;EACZ,cAAc,gBAAgB,cAAc,cAAc;EAC1D,SAAS,eAAe;EACxB,MAAM;;;UAIS;EACf,aAAa;EACb,qBAAqB;;;;EAIrB;;;;;;UAOe;;WAEN;;WAEA,QAAQ;;;;;;WAMR,UAAU;;;;;;WAMV,mBAAmB;;;UAuBb;WACN;WACA;WACA;WACA;;WAEA;;;UAIM;WACN;WACA;;WAEA;WACA,iBAAiB;;;;;;;;;;KAWhB,iBAAiB;EAC3B;IAAkB,KAAK,eAAe;;EACtC;IACE,KAAK,eAAe,iBAAiB;IACrC,eAAe,eAAe,iBAAiB;;;EAGjD;IACE,eACE,YACA,YACA,gBACA,gBACA,OAAO,SACP,OAAO,uBACN;;;;;;;KAQK,mBAAmB;;;;;KAMnB,oBAAoB;;KAGpB,kBAAkB;;;;;;KAOlB,oBAAoB;;;;;;;;;;;iBAYhB,wBAAwB,MAAM,iBAAiB;;;;;;;iBAc/C,oBACd,MAAM,gBACN,MAAM,mBACL;;;UCtKc;EACf;EACA;EACA;EACA;;cAGW,iCAAe,QAAA;iBAEZ,eAAe;;;;;;;KCoBnB,cAAc,KAAK,kBAAkB;;;;;;;KAQrC,oBACV,KAAK,kBACL,iBACA,QAFK;;UAMU;;EAEf;;EAEA;;EAEA;;EAEA,cAAc;;;EAGd,qBAAqB;;;;;EAKrB,iBAAiB;;;;;;;;;;;;;;;EAejB;;;UAIe;;EAEf,SAAS;;EAET,WAAW,KAAK;;EAEhB,QAAQ;;EAER,WAAW,MAAM;;;;EAIjB,WAAW;;;;;;;;;iBAUG,WACd,QACA,SACA,OACA,UACA,YACC,gBAAgB,MAAM;;;;;;;iBCrGT,WAAW;;;;;;;iBAcX,UAAU,OAAO;;;;;;;;iBA4BjB,YAAY,WAAW;;;;UC7CtB;;EAEf;;EAEA,QAAQ;;EAER;;EAEA;;EAEA;;;;;;;;;;iBAWc,gBACd,UACA,OACA,UACA,YACA,mBACC,qBAAqB,MAAM;;;iBC5Bd,eAAe,kBAAkB;iBAoCjC,WAAW,gBAAgB;iBAmC3B,eAAe,GAAG,QAAQ,OAAO,IAAI,SAAS,IAAI;;;;;;;cCpErD,iBAAiB;;;;UCMb;;EAEf,iBAAiB,OAAO;;EAExB,QAAQ;;EAER,WAAW,MAAM;;;;;;;;iBASH,gBACd,eACA,OACA,YACC,qBAAqB,MAAM;;;;UCnBb;;EAEf,SAAS;;EAET,iBAAiB,OAAO;;EAExB,QAAQ;;EAER,OAAO,MAAM;;EAEb,QAAQ,MAAM;;;;;;;;;iBAUA,kBACd,QACA,eACA,OACA,MACA,SACC,uBAAuB,MAAM"}
|