@manabrew/protocol 2.0.0 → 3.0.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/game/index.d.ts +13 -0
- package/dist/prompts/common.d.ts +1 -0
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +1 -1
package/dist/game/index.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ export type CardDto = {
|
|
|
12
12
|
toughness: string | null;
|
|
13
13
|
basePower?: number;
|
|
14
14
|
baseToughness?: number;
|
|
15
|
+
finalChapter?: number;
|
|
16
|
+
classLevel?: number;
|
|
17
|
+
classLevels: Array<ClassLevelDto>;
|
|
18
|
+
sagaChapters: Array<SagaChapterDto>;
|
|
15
19
|
text: string;
|
|
16
20
|
controllerId: string;
|
|
17
21
|
ownerId: string;
|
|
@@ -57,6 +61,11 @@ export type CardView = {
|
|
|
57
61
|
"visibility": "hidden";
|
|
58
62
|
id: string;
|
|
59
63
|
};
|
|
64
|
+
export type ClassLevelDto = {
|
|
65
|
+
level: number;
|
|
66
|
+
oracle: string;
|
|
67
|
+
cost?: string;
|
|
68
|
+
};
|
|
60
69
|
export type CombatAssignmentDto = {
|
|
61
70
|
blockerId: string;
|
|
62
71
|
attackerId: string;
|
|
@@ -115,6 +124,10 @@ export type PlaymatSettings = {
|
|
|
115
124
|
brightness?: number;
|
|
116
125
|
color?: string;
|
|
117
126
|
};
|
|
127
|
+
export type SagaChapterDto = {
|
|
128
|
+
chapters: Array<number>;
|
|
129
|
+
oracle: string;
|
|
130
|
+
};
|
|
118
131
|
export type StackObjectDto = {
|
|
119
132
|
id: string;
|
|
120
133
|
sourceId: string;
|
package/dist/prompts/common.d.ts
CHANGED
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 = "3.0.0";
|
|
2
|
+
export declare const PROTOCOL_VERSION = 3;
|
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 = "3.0.0";
|
|
6
|
+
exports.PROTOCOL_VERSION = 3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manabrew/protocol",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.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": {
|