@threenative/core 0.2.0 → 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.
@@ -1,8 +1,17 @@
1
- import { JsonValue } from '@threenative/playtest';
2
- import { c as IGamePluginHooks } from './game-DRt1Qhq3.js';
1
+ import { JsonValue } from '@threenative/playtest/protocol';
2
+ import { b as IGamePluginHooks } from './game-CYIaKhgl.js';
3
3
  import 'three';
4
+ import './canvas-layer-CtrZHgIh.js';
5
+ import 'three/webgpu';
4
6
  import 'zustand/vanilla';
5
7
 
8
+ /**
9
+ * Install the playtest bridge into a portable game.
10
+ * @situation expose movement and world observations to a playtest
11
+ * @situation connect a game to the ThreeNative scenario runner
12
+ * @constraint install once in the game's plugin list
13
+ * @example const game = defineGame({ plugins: [playtest()] });
14
+ */
6
15
  declare function playtest<TState extends Record<string, unknown> = Record<string, unknown>, TPhysics = undefined>(options?: IPlaytestOptions): IGamePluginHooks<TState, TPhysics>;
7
16
  declare const PLAYTEST_ATTACH_TIMEOUT_MS = 30000;
8
17
  /**