@vankosoft/game-platform 1.6.2 → 1.7.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/cjs/Dto/Actions/createGameLobbyActionDto.d.ts +5 -0
- package/dist/cjs/Dto/Actions/gameLobbyCreatedActionDto.d.ts +6 -0
- package/dist/cjs/Dto/Actions/joinGameLobbyActionDto.d.ts +6 -0
- package/dist/cjs/Dto/Actions/leaveGameLobbyActionDto.d.ts +6 -0
- package/dist/cjs/Dto/Actions/mercureActionDto.d.ts +6 -0
- package/dist/cjs/Dto/Actions/mercureMessageActionDto.d.ts +6 -0
- package/dist/cjs/Dto/BoardGame/gameDto.d.ts +0 -5
- package/dist/cjs/Dto/BoardGame/index.d.ts +0 -1
- package/dist/cjs/Dto/BoardGame/index.ts +0 -1
- package/dist/cjs/Dto/CardGame/gameDto.d.ts +0 -5
- package/dist/cjs/Dto/CardGame/index.d.ts +0 -1
- package/dist/cjs/Dto/CardGame/index.ts +0 -1
- package/dist/cjs/Dto/gameDto.d.ts +9 -0
- package/dist/cjs/Dto/gamePlayersList.d.ts +6 -0
- package/dist/cjs/Dto/gameRoomDto.d.ts +18 -0
- package/dist/cjs/Dto/index.ts +0 -2
- package/dist/cjs/Dto/mercureMessageDto.d.ts +5 -0
- package/dist/cjs/Dto/playerDto.d.ts +11 -1
- package/dist/cjs/Enum/mercureActionNames.d.ts +7 -0
- package/dist/cjs/Type/GameRoomInterface.d.ts +2 -0
- package/dist/cjs/index.d.ts +10 -3
- package/dist/cjs/index.js +9 -0
- package/package.json +1 -1
- package/dist/cjs/Dto/BoardGame/BoardGamePlayersList.d.ts +0 -6
- package/dist/cjs/Dto/BoardGame/playerDto.d.ts +0 -9
- package/dist/cjs/Dto/CardGame/CardGamePlayersList.d.ts +0 -6
- package/dist/cjs/Dto/CardGame/playerDto.d.ts +0 -6
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { PlayerColor } from '../../Enum/playerColor';
|
|
2
2
|
|
|
3
3
|
import { GameDto } from '../gameDto';
|
|
4
|
-
import { BoardGamePlayerDto } from './playerDto';
|
|
5
4
|
import { PointDto } from './pointDto';
|
|
6
5
|
import { MoveDto } from './moveDto';
|
|
7
6
|
import { ChessSquareDto } from './chessSquareDto';
|
|
8
7
|
|
|
9
|
-
import { BoardGamePlayersList } from './BoardGamePlayersList';
|
|
10
|
-
|
|
11
8
|
export interface BoardGameDto extends GameDto {
|
|
12
|
-
players: BoardGamePlayersList;
|
|
13
|
-
|
|
14
9
|
currentPlayer: PlayerColor;
|
|
15
10
|
winner: PlayerColor;
|
|
16
11
|
points: PointDto[];
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
import { GameDto } from '../gameDto';
|
|
2
|
-
import { CardGamePlayerDto } from './playerDto';
|
|
3
2
|
import { PlayerPosition } from '../../Enum/playerPosition';
|
|
4
3
|
import { CardGameTeam } from '../../Enum/cardGameTeam'
|
|
5
4
|
|
|
6
|
-
import { CardGamePlayersList } from './CardGamePlayersList';
|
|
7
|
-
|
|
8
5
|
export interface CardGameDto extends GameDto {
|
|
9
|
-
players: CardGamePlayersList;
|
|
10
|
-
|
|
11
6
|
validBids: any;
|
|
12
7
|
validCards: any;
|
|
13
8
|
bidHistory: any;
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { GameState } from '../Enum/gameState';
|
|
2
|
+
import { GamePlayersList } from './gamePlayersList';
|
|
2
3
|
|
|
3
4
|
export interface GameDto {
|
|
4
5
|
id: string;
|
|
5
6
|
gameCode: string;
|
|
7
|
+
title: string;
|
|
6
8
|
playState: GameState;
|
|
9
|
+
|
|
10
|
+
players: GamePlayersList;
|
|
11
|
+
maxPlayers: number;
|
|
12
|
+
|
|
13
|
+
thinkTime: number;
|
|
14
|
+
goldMultiplier: number;
|
|
15
|
+
isGoldGame: boolean;
|
|
7
16
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GameDto } from '@vankosoft/game-platform';
|
|
2
|
+
import { PlayerDto } from '@vankosoft/game-platform';
|
|
3
|
+
import { CardGameTeam } from '@vankosoft/game-platform';
|
|
4
|
+
|
|
5
|
+
export interface GameRoomDto
|
|
6
|
+
{
|
|
7
|
+
id: number;
|
|
8
|
+
owner: string;
|
|
9
|
+
guid: string;
|
|
10
|
+
name: string;
|
|
11
|
+
|
|
12
|
+
game: GameDto,
|
|
13
|
+
players: PlayerDto[],
|
|
14
|
+
teams: CardGameTeam[],
|
|
15
|
+
|
|
16
|
+
status: string;
|
|
17
|
+
isPlaying: boolean;
|
|
18
|
+
}
|
package/dist/cjs/Dto/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* */
|
|
2
1
|
export * from "./connectionDto";
|
|
3
2
|
export * from "./errorReportDto";
|
|
4
3
|
export * from "./userDto";
|
|
@@ -7,6 +6,5 @@ export * from "./gameCookieDto";
|
|
|
7
6
|
export * from "./playerDto";
|
|
8
7
|
export * from "./newScoreDto";
|
|
9
8
|
|
|
10
|
-
|
|
11
9
|
export * from "./BoardGame";
|
|
12
10
|
export * from "./CardGame";
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { PlayerColor } from '../Enum/playerColor';
|
|
2
|
+
import { PlayerPosition } from '../Enum/playerPosition';
|
|
3
|
+
|
|
4
|
+
export interface PlayerDto {
|
|
2
5
|
name: string;
|
|
3
6
|
photoUrl: string;
|
|
4
7
|
|
|
8
|
+
playerColor?: PlayerColor;
|
|
9
|
+
playerPosition?: PlayerPosition;
|
|
10
|
+
|
|
11
|
+
pointsLeft: number;
|
|
12
|
+
elo: number;
|
|
13
|
+
gold: number;
|
|
14
|
+
|
|
5
15
|
// My Property to Detect If Player is AI in Frontend
|
|
6
16
|
isAi: boolean;
|
|
7
17
|
}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from "./Utils/status-message";
|
|
|
11
11
|
*/
|
|
12
12
|
export * from "./Enum/gameState";
|
|
13
13
|
export * from "./Enum/actionNames";
|
|
14
|
+
export * from "./Enum/mercureActionNames";
|
|
14
15
|
export * from "./Enum/messageType";
|
|
15
16
|
export * from "./Enum/playerColor";
|
|
16
17
|
export * from "./Enum/chessPieceType";
|
|
@@ -53,11 +54,12 @@ export { UserDto } from "./Dto/userDto";
|
|
|
53
54
|
export { GameDto } from "./Dto/gameDto";
|
|
54
55
|
export { GameCookieDto } from "./Dto/gameCookieDto";
|
|
55
56
|
export { PlayerDto } from "./Dto/playerDto";
|
|
57
|
+
export { GamePlayersList } from "./Dto/gamePlayersList";
|
|
56
58
|
export { NewScoreDto } from "./Dto/newScoreDto";
|
|
59
|
+
export { GameRoomDto } from "./Dto/gameRoomDto";
|
|
60
|
+
export { MercureMessageDto } from "./Dto/mercureMessageDto";
|
|
57
61
|
export { BoardGameDto } from "./Dto/BoardGame/gameDto";
|
|
58
62
|
export { MoveDto } from "./Dto/BoardGame/moveDto";
|
|
59
|
-
export { BoardGamePlayersList } from "./Dto/BoardGame/BoardGamePlayersList";
|
|
60
|
-
export { BoardGamePlayerDto } from "./Dto/BoardGame/playerDto";
|
|
61
63
|
export { PointDto } from "./Dto/BoardGame/pointDto";
|
|
62
64
|
export { CheckerDto } from "./Dto/BoardGame/checkerDto";
|
|
63
65
|
export { DiceDto } from "./Dto/BoardGame/diceDto";
|
|
@@ -65,7 +67,6 @@ export { ChessMoveDto } from "./Dto/BoardGame/chessMoveDto";
|
|
|
65
67
|
export { ChessPieceDto } from "./Dto/BoardGame/chessPieceDto";
|
|
66
68
|
export { ChessSquareDto } from "./Dto/BoardGame/chessSquareDto";
|
|
67
69
|
export { CardGameDto } from "./Dto/CardGame/gameDto";
|
|
68
|
-
export { CardGamePlayerDto } from "./Dto/CardGame/playerDto";
|
|
69
70
|
export { CardDto } from "./Dto/CardGame/cardDto";
|
|
70
71
|
export { BidDto } from "./Dto/CardGame/bidDto";
|
|
71
72
|
export { BridgeBeloteBidDto } from "./Dto/CardGame/bridgeBeloteBidDto";
|
|
@@ -111,6 +112,12 @@ export { ChessGameStartedActionDto } from './Dto/Actions/chessGameStartedActionD
|
|
|
111
112
|
export { ChessMoveMadeActionDto } from './Dto/Actions/chessMoveMadeActionDto';
|
|
112
113
|
export { ChessOpponentMoveActionDto } from './Dto/Actions/chessOpponentMoveActionDto';
|
|
113
114
|
export { ChessInvalidMoveMadeActionDto } from './Dto/Actions/chessInvalidMoveMadeActionDto';
|
|
115
|
+
export { CreateGameLobbyActionDto } from './Dto/Actions/createGameLobbyActionDto';
|
|
116
|
+
export { GameLobbyCreatedActionDto } from './Dto/Actions/gameLobbyCreatedActionDto';
|
|
117
|
+
export { JoinGameLobbyActionDto } from './Dto/Actions/joinGameLobbyActionDto';
|
|
118
|
+
export { LeaveGameLobbyActionDto } from './Dto/Actions/leaveGameLobbyActionDto';
|
|
119
|
+
export { MercureActionDto } from './Dto/Actions/mercureActionDto';
|
|
120
|
+
export { MercureMessageActionDto } from './Dto/Actions/mercureMessageActionDto';
|
|
114
121
|
export { GameStringRequest } from './Dto/editor/gameStringRequest';
|
|
115
122
|
export { GameStringResponseDto } from './Dto/editor/gameStringResponseDto';
|
|
116
123
|
export { InviteResponseDto } from './Dto/rest/inviteResponseDto';
|
package/dist/cjs/index.js
CHANGED
|
@@ -309,6 +309,15 @@ exports.ActionNames = void 0;
|
|
|
309
309
|
ActionNames[ActionNames["testReopenConnection"] = 36] = "testReopenConnection";
|
|
310
310
|
})(exports.ActionNames || (exports.ActionNames = {}));
|
|
311
311
|
|
|
312
|
+
exports.MercureActionNames = void 0;
|
|
313
|
+
(function (MercureActionNames) {
|
|
314
|
+
MercureActionNames[MercureActionNames["testMessage"] = 0] = "testMessage";
|
|
315
|
+
MercureActionNames[MercureActionNames["gameLobbyCreated"] = 1] = "gameLobbyCreated";
|
|
316
|
+
MercureActionNames[MercureActionNames["createGameLobby"] = 2] = "createGameLobby";
|
|
317
|
+
MercureActionNames[MercureActionNames["joinGameLobby"] = 3] = "joinGameLobby";
|
|
318
|
+
MercureActionNames[MercureActionNames["leaveGameLobby"] = 4] = "leaveGameLobby";
|
|
319
|
+
})(exports.MercureActionNames || (exports.MercureActionNames = {}));
|
|
320
|
+
|
|
312
321
|
/* Auto Generated */
|
|
313
322
|
exports.MessageType = void 0;
|
|
314
323
|
(function (MessageType) {
|
package/package.json
CHANGED