p2p-lockstep-kit-ui 0.1.4 → 0.1.5
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 +7 -2
- package/dist/index.js +658 -392
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +12 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -46,6 +46,8 @@ import "p2p-lockstep-kit-ui/style.css";
|
|
|
46
46
|
game-title="Gomoku"
|
|
47
47
|
session-id="gomoku"
|
|
48
48
|
theme="dark"
|
|
49
|
+
allow-draw
|
|
50
|
+
allow-resign
|
|
49
51
|
></p2p-lockstep-app>
|
|
50
52
|
```
|
|
51
53
|
|
|
@@ -117,10 +119,13 @@ Game runtime actions:
|
|
|
117
119
|
|
|
118
120
|
```ts
|
|
119
121
|
runtime.actions.move(move);
|
|
122
|
+
runtime.actions.offerDraw();
|
|
123
|
+
runtime.actions.resign();
|
|
120
124
|
```
|
|
121
125
|
|
|
122
|
-
Ready, start, undo, restart,
|
|
123
|
-
controls.
|
|
126
|
+
Ready, start, undo, restart, draw approval, and resign confirmation are owned
|
|
127
|
+
by the UI shell controls. `allow-draw` and `allow-resign` opt a game into the
|
|
128
|
+
additional controls; game packages should normally let the shell invoke them.
|
|
124
129
|
|
|
125
130
|
Runtime state:
|
|
126
131
|
|