@hadoku/platform-wire 0.1.37 → 0.1.38
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/dist/seats.d.ts +15 -0
- package/dist/seats.js +10 -0
- package/package.json +6 -2
package/dist/seats.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A room's game seats as they travel: who holds each seat, by seat number — a member's id, one of
|
|
3
|
+
* the two markers below, or null for an open seat. The server writes them (`@hadoku/game-server`'s
|
|
4
|
+
* `room/record.ts`) and every game's page reads them (`@hadoku/game-ui`'s `seats/platform.ts`), so
|
|
5
|
+
* the markers are defined once, here, for both.
|
|
6
|
+
*/
|
|
7
|
+
/** The marker of a seat an AI holds. */
|
|
8
|
+
export declare const AI_SEAT = "ai";
|
|
9
|
+
/** The marker of a seat its room's leader closed: nobody sits there, and the game is a seat smaller. */
|
|
10
|
+
export declare const CLOSED_SEAT = "closed";
|
|
11
|
+
/** An AI seat as a player: one of the platform's characters, by its own name (`knight` plays as Knight). */
|
|
12
|
+
export interface AiPersona {
|
|
13
|
+
name: string;
|
|
14
|
+
avatarId: string;
|
|
15
|
+
}
|
package/dist/seats.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A room's game seats as they travel: who holds each seat, by seat number — a member's id, one of
|
|
3
|
+
* the two markers below, or null for an open seat. The server writes them (`@hadoku/game-server`'s
|
|
4
|
+
* `room/record.ts`) and every game's page reads them (`@hadoku/game-ui`'s `seats/platform.ts`), so
|
|
5
|
+
* the markers are defined once, here, for both.
|
|
6
|
+
*/
|
|
7
|
+
/** The marker of a seat an AI holds. */
|
|
8
|
+
export const AI_SEAT = 'ai';
|
|
9
|
+
/** The marker of a seat its room's leader closed: nobody sits there, and the game is a seat smaller. */
|
|
10
|
+
export const CLOSED_SEAT = 'closed';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/platform-wire",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "0.1.38",
|
|
4
|
+
"gitHead": "a4239391dc183d4efad36b3184e672a00cf9c7fa",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "The wire any game speaks: room ids, telemetry, presence, events and tables, the Discord relay, looks, the restart notice, secure random and a generic server envelope. Knows no game; a game's own part rides as a type parameter. MIT; imports only zod.",
|
|
@@ -45,6 +45,10 @@
|
|
|
45
45
|
"./envelope": {
|
|
46
46
|
"types": "./dist/envelope.d.ts",
|
|
47
47
|
"import": "./dist/envelope.js"
|
|
48
|
+
},
|
|
49
|
+
"./seats": {
|
|
50
|
+
"types": "./dist/seats.d.ts",
|
|
51
|
+
"import": "./dist/seats.js"
|
|
48
52
|
}
|
|
49
53
|
},
|
|
50
54
|
"dependencies": {
|