@storylet-studio/runtime 0.2.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 +16 -0
- package/dist/index.cjs +1972 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +656 -0
- package/dist/index.d.ts +656 -0
- package/dist/index.js +1941 -0
- package/dist/index.js.map +1 -0
- package/dist/storyletengine.min.js +2 -0
- package/dist/storyletengine.min.js.map +1 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# @storylet-studio/runtime
|
|
2
|
+
|
|
3
|
+
The Storylet Engine **JS reference runtime**: the Engine and Flow surface of
|
|
4
|
+
[the bundle format](https://storylet.studio/format/bundle/) section 5 -
|
|
5
|
+
the engine (`openFlow` / `getFlow` / `flows` / `closeFlow` / `reset` /
|
|
6
|
+
`saveGame` / `loadGame` / `subscribeTrace` / `log` / `clearLog` /
|
|
7
|
+
`getProperty` / `setProperty` / `listProperties` / `listBags` /
|
|
8
|
+
`sharedClaims`) and the flow it hands back
|
|
9
|
+
(`peek` / `deal` / `dealMany` / `board` / `outcomes` / `play` /
|
|
10
|
+
`advanceTurns` / `listBoxes` / `listProperties` / `listBags` / `log` /
|
|
11
|
+
`subscribeTrace`), implementing the dealing semantics of section 3 exactly.
|
|
12
|
+
|
|
13
|
+
Held to the conformance corpus (`@storylet-studio/conformance`): every
|
|
14
|
+
behaviour here is pinned by a case with hand-written expectations, and the
|
|
15
|
+
native ports must reproduce this runtime's results bit-for-bit where the
|
|
16
|
+
PRNG is involved (mulberry32, `src/prng.ts`).
|