@vankosoft/game-platform 1.2.0 → 1.2.2
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/CHANGELOG.md +11 -0
- package/VERSION +1 -1
- package/dist/cjs/Dto/Actions/dummyFaceupActionDto.d.ts +8 -0
- package/dist/cjs/Dto/Actions/dummyPlayCardActionDto.d.ts +11 -0
- package/dist/cjs/Dto/CardGame/gameDto.d.ts +1 -0
- package/dist/cjs/Dto/gameCookieDto.d.ts +1 -0
- package/dist/cjs/Enum/actionNames.d.ts +12 -10
- package/dist/cjs/Model/card.d.ts +1 -1
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.js +14 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
1.1.0 | Release date: **26.08.2026**
|
|
2
|
+
============================================
|
|
3
|
+
* New Features:
|
|
4
|
+
- Create ContractBridgeBidDto Interface.
|
|
5
|
+
- Update NPM Package Version.
|
|
6
|
+
- Add a New Method into Announce Model.
|
|
7
|
+
- Add Card Images.
|
|
8
|
+
- Update Package Version.
|
|
9
|
+
- Face Up Dummy Player Cards.
|
|
10
|
+
|
|
11
|
+
|
|
1
12
|
1.0.0 | Release date: **16.08.2026**
|
|
2
13
|
============================================
|
|
3
14
|
* New Features:
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.1.0
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ActionDto } from './actionDto';
|
|
2
|
+
|
|
3
|
+
import { PlayerPosition } from '../../Enum/playerPosition';
|
|
4
|
+
import { CardDto } from '../CardGame/cardDto';
|
|
5
|
+
|
|
6
|
+
export interface DummyPlayCardActionDto extends ActionDto {
|
|
7
|
+
Card: CardDto;
|
|
8
|
+
Belote: boolean;
|
|
9
|
+
Player: PlayerPosition;
|
|
10
|
+
TrickNumber: number;
|
|
11
|
+
}
|
|
@@ -20,14 +20,16 @@ export declare enum ActionNames {
|
|
|
20
20
|
playingStarted = 18,
|
|
21
21
|
playCard = 19,
|
|
22
22
|
opponentPlayCard = 20,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
23
|
+
dummyFaceup = 21,
|
|
24
|
+
dummyPlayCard = 22,
|
|
25
|
+
trickEnded = 23,
|
|
26
|
+
roundEnded = 24,
|
|
27
|
+
startNewRound = 25,
|
|
28
|
+
announceMade = 26,
|
|
29
|
+
startNewGame = 27,
|
|
30
|
+
chessGameStarted = 28,
|
|
31
|
+
chessMoveMade = 29,
|
|
32
|
+
chessOpponentMove = 30,
|
|
33
|
+
chessInvalidMoveMade = 31,
|
|
34
|
+
serverWasTerminated = 32
|
|
33
35
|
}
|
package/dist/cjs/Model/card.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { IThemes } from './themes';
|
|
|
3
3
|
import { CardDto } from '../Dto/CardGame/cardDto';
|
|
4
4
|
import { PlayerPosition } from '../Enum/playerPosition';
|
|
5
5
|
export declare class Card {
|
|
6
|
-
static draw(cx: CanvasRenderingContext2D | null, cardImagesPath: string, cardBack: string, card: CardDto, point: Point, width: number, height: number, angle: number, theme: IThemes, position: PlayerPosition, highLighted: boolean, debugCards: boolean): void;
|
|
6
|
+
static draw(cx: CanvasRenderingContext2D | null, cardImagesPath: string, cardBack: string, card: CardDto, point: Point, width: number, height: number, angle: number, theme: IThemes, position: PlayerPosition, isDummy: boolean, highLighted: boolean, debugCards: boolean): void;
|
|
7
7
|
}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -89,6 +89,8 @@ export { OpponentBidsActionDto } from './Dto/Actions/opponentBidsActionDto';
|
|
|
89
89
|
export { PlayingStartedActionDto } from './Dto/Actions/playingStartedActionDto';
|
|
90
90
|
export { PlayCardActionDto } from './Dto/Actions/playCardActionDto';
|
|
91
91
|
export { OpponentPlayCardActionDto } from './Dto/Actions/opponentPlayCardActionDto';
|
|
92
|
+
export { DummyFaceupActionDto } from './Dto/Actions/dummyFaceupActionDto';
|
|
93
|
+
export { DummyPlayCardActionDto } from './Dto/Actions/dummyPlayCardActionDto';
|
|
92
94
|
export { TrickEndedActionDto } from './Dto/Actions/trickEndedActionDto';
|
|
93
95
|
export { RoundEndedActionDto } from './Dto/Actions/roundEndedActionDto';
|
|
94
96
|
export { StartNewRoundActionDto } from './Dto/Actions/startNewRoundActionDto';
|
package/dist/cjs/index.js
CHANGED
|
@@ -202,17 +202,19 @@ exports.ActionNames = void 0;
|
|
|
202
202
|
ActionNames[ActionNames["playingStarted"] = 18] = "playingStarted";
|
|
203
203
|
ActionNames[ActionNames["playCard"] = 19] = "playCard";
|
|
204
204
|
ActionNames[ActionNames["opponentPlayCard"] = 20] = "opponentPlayCard";
|
|
205
|
-
ActionNames[ActionNames["
|
|
206
|
-
ActionNames[ActionNames["
|
|
207
|
-
ActionNames[ActionNames["
|
|
208
|
-
ActionNames[ActionNames["
|
|
209
|
-
ActionNames[ActionNames["
|
|
205
|
+
ActionNames[ActionNames["dummyFaceup"] = 21] = "dummyFaceup";
|
|
206
|
+
ActionNames[ActionNames["dummyPlayCard"] = 22] = "dummyPlayCard";
|
|
207
|
+
ActionNames[ActionNames["trickEnded"] = 23] = "trickEnded";
|
|
208
|
+
ActionNames[ActionNames["roundEnded"] = 24] = "roundEnded";
|
|
209
|
+
ActionNames[ActionNames["startNewRound"] = 25] = "startNewRound";
|
|
210
|
+
ActionNames[ActionNames["announceMade"] = 26] = "announceMade";
|
|
211
|
+
ActionNames[ActionNames["startNewGame"] = 27] = "startNewGame";
|
|
210
212
|
// Chess Game Actions
|
|
211
|
-
ActionNames[ActionNames["chessGameStarted"] =
|
|
212
|
-
ActionNames[ActionNames["chessMoveMade"] =
|
|
213
|
-
ActionNames[ActionNames["chessOpponentMove"] =
|
|
214
|
-
ActionNames[ActionNames["chessInvalidMoveMade"] =
|
|
215
|
-
ActionNames[ActionNames["serverWasTerminated"] =
|
|
213
|
+
ActionNames[ActionNames["chessGameStarted"] = 28] = "chessGameStarted";
|
|
214
|
+
ActionNames[ActionNames["chessMoveMade"] = 29] = "chessMoveMade";
|
|
215
|
+
ActionNames[ActionNames["chessOpponentMove"] = 30] = "chessOpponentMove";
|
|
216
|
+
ActionNames[ActionNames["chessInvalidMoveMade"] = 31] = "chessInvalidMoveMade";
|
|
217
|
+
ActionNames[ActionNames["serverWasTerminated"] = 32] = "serverWasTerminated";
|
|
216
218
|
})(exports.ActionNames || (exports.ActionNames = {}));
|
|
217
219
|
|
|
218
220
|
/* Auto Generated */
|
|
@@ -575,13 +577,13 @@ function GetAnnounceSymbol(symbolId) {
|
|
|
575
577
|
}
|
|
576
578
|
|
|
577
579
|
class Card {
|
|
578
|
-
static draw(cx, cardImagesPath, cardBack, card, point, width, height, angle, theme, position, highLighted, debugCards) {
|
|
580
|
+
static draw(cx, cardImagesPath, cardBack, card, point, width, height, angle, theme, position, isDummy, highLighted, debugCards) {
|
|
579
581
|
if (!cx) {
|
|
580
582
|
return;
|
|
581
583
|
}
|
|
582
584
|
const { x, y } = point;
|
|
583
585
|
const image = new Image(width, height);
|
|
584
|
-
if (position === exports.PlayerPosition.south || debugCards) {
|
|
586
|
+
if (position === exports.PlayerPosition.south || isDummy || debugCards) {
|
|
585
587
|
let imgSrc = `${cardImagesPath}/${card.cardIndex}.png`;
|
|
586
588
|
image.src = imgSrc;
|
|
587
589
|
}
|