@manabrew/protocol 3.1.0 → 4.1.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/dist/deck/index.d.ts
CHANGED
|
@@ -75,6 +75,7 @@ export type DeckCardIdentity = {
|
|
|
75
75
|
name: string;
|
|
76
76
|
setCode: string;
|
|
77
77
|
cardNumber: string;
|
|
78
|
+
oracleId?: string;
|
|
78
79
|
foil?: boolean;
|
|
79
80
|
};
|
|
80
81
|
export type DeckFormat = "standard" | "pioneer" | "modern" | "legacy" | "vintage" | "pauper" | "commander" | "brawl" | "oathbreaker" | "draft" | "sealed";
|
|
@@ -9,8 +9,11 @@ export type ChooseBoardTargetsInput = {
|
|
|
9
9
|
minTargets: number;
|
|
10
10
|
maxTargets: number;
|
|
11
11
|
chosenTargets: number;
|
|
12
|
+
cancellable: boolean;
|
|
12
13
|
};
|
|
13
14
|
export type ChooseBoardTargetsOutput = {
|
|
14
15
|
"type": "boardTargets";
|
|
15
16
|
chosen: Array<TargetRef>;
|
|
17
|
+
} | {
|
|
18
|
+
"type": "cancel";
|
|
16
19
|
};
|
|
@@ -24,7 +24,7 @@ export type ProtocolError = {
|
|
|
24
24
|
message: string;
|
|
25
25
|
promptId?: number;
|
|
26
26
|
};
|
|
27
|
-
export type ProtocolErrorCode = "stalePrompt" | "wrongPlayer" | "wrongPromptType" | "unknownActionId" | "invalidShape";
|
|
27
|
+
export type ProtocolErrorCode = "stalePrompt" | "wrongPlayer" | "wrongPromptType" | "unknownActionId" | "cancelNotAllowed" | "invalidShape";
|
|
28
28
|
export type StateUpdate = {
|
|
29
29
|
gameView: GameViewDto;
|
|
30
30
|
};
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
2
|
-
export declare const PROTOCOL_VERSION =
|
|
1
|
+
export declare const VERSION = "4.1.0";
|
|
2
|
+
export declare const PROTOCOL_VERSION = 4;
|
package/dist/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PROTOCOL_VERSION = exports.VERSION = void 0;
|
|
4
4
|
// AUTO-GENERATED by `cargo run -p manabrew-protocol --bin gen-protocol`. Do not edit.
|
|
5
|
-
exports.VERSION = "
|
|
6
|
-
exports.PROTOCOL_VERSION =
|
|
5
|
+
exports.VERSION = "4.1.0";
|
|
6
|
+
exports.PROTOCOL_VERSION = 4;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manabrew/protocol",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "TypeScript types for the Manabrew wire protocol — the engine↔client message contract for the Manabrew Magic: The Gathering client.",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"repository": {
|