@storylet-studio/runtime 0.8.1 → 0.9.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/README.md +2 -2
- package/dist/index.cjs +248 -1045
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -20
- package/dist/index.d.ts +56 -20
- package/dist/index.js +183 -969
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @storylet-studio/runtime
|
|
2
2
|
|
|
3
3
|
The Storylet Engine **JS reference runtime**: the Engine and Flow surface of
|
|
4
|
-
[the bundle format](https://
|
|
4
|
+
[the bundle format](https://storylets.dev/format/bundle/) section 5 -
|
|
5
5
|
the engine (`openFlow` / `getFlow` / `flows` / `closeFlow` / `reset` /
|
|
6
6
|
`saveGame` / `loadGame` / `saveFlow` / `previewLoad` / `previewFlowRestore` /
|
|
7
7
|
`subscribeTrace` / `log` / `clearLog` /
|
|
@@ -24,4 +24,4 @@ game. Pass the game's as `new Engine(bundle, { registry })` to share it with any
|
|
|
24
24
|
starting `storylets/`, `@world` is the game's to register, and `saveGame()` leaves the values
|
|
25
25
|
to the game, which saves the registry once. Without one the engine makes its own registry, self-backs
|
|
26
26
|
`@world`, and `saveGame()` carries every value, so one call is still the whole run. Version 1
|
|
27
|
-
envelopes still load. See [Running it with Patter](https://
|
|
27
|
+
envelopes still load. See [Running it with Patter](https://storylets.dev/play/with-patter/#one-registry).
|