@vankosoft/game-platform 1.6.3 → 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.
@@ -0,0 +1,5 @@
1
+ import { MercureActionDto } from './mercureActionDto';
2
+
3
+ export interface CreateGameLobbyActionDto extends MercureActionDto {
4
+ gameType: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import { MercureActionDto } from './mercureActionDto';
2
+ import { GameRoomDto } from '../gameRoomDto';
3
+
4
+ export interface GameLobbyCreatedActionDto extends MercureActionDto {
5
+ room: GameRoomDto;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MercureActionDto } from './mercureActionDto';
2
+ import { GameRoomDto } from '../gameRoomDto';
3
+
4
+ export interface JoinGameLobbyActionDto extends MercureActionDto {
5
+ room: GameRoomDto;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MercureActionDto } from './mercureActionDto';
2
+ import { GameRoomDto } from '../gameRoomDto';
3
+
4
+ export interface LeaveGameLobbyActionDto extends MercureActionDto {
5
+ room: GameRoomDto;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MercureActionNames } from '../../Enum/mercureActionNames';
2
+
3
+ export interface MercureActionDto {
4
+ actionName: MercureActionNames;
5
+ gameType?: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { MercureActionDto } from './mercureActionDto';
2
+ import { MercureMessageDto } from '../mercureMessageDto';
3
+
4
+ export interface MercureMessageActionDto extends MercureActionDto {
5
+ message: MercureMessageDto;
6
+ }
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ export interface MercureMessageDto
2
+ {
3
+ topic: string;
4
+ message: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum MercureActionNames {
2
+ testMessage = 0,
3
+ gameLobbyCreated = 1,
4
+ createGameLobby = 2,
5
+ joinGameLobby = 3,
6
+ leaveGameLobby = 4
7
+ }
@@ -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";
@@ -55,6 +56,8 @@ export { GameCookieDto } from "./Dto/gameCookieDto";
55
56
  export { PlayerDto } from "./Dto/playerDto";
56
57
  export { GamePlayersList } from "./Dto/gamePlayersList";
57
58
  export { NewScoreDto } from "./Dto/newScoreDto";
59
+ export { GameRoomDto } from "./Dto/gameRoomDto";
60
+ export { MercureMessageDto } from "./Dto/mercureMessageDto";
58
61
  export { BoardGameDto } from "./Dto/BoardGame/gameDto";
59
62
  export { MoveDto } from "./Dto/BoardGame/moveDto";
60
63
  export { PointDto } from "./Dto/BoardGame/pointDto";
@@ -109,6 +112,12 @@ export { ChessGameStartedActionDto } from './Dto/Actions/chessGameStartedActionD
109
112
  export { ChessMoveMadeActionDto } from './Dto/Actions/chessMoveMadeActionDto';
110
113
  export { ChessOpponentMoveActionDto } from './Dto/Actions/chessOpponentMoveActionDto';
111
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';
112
121
  export { GameStringRequest } from './Dto/editor/gameStringRequest';
113
122
  export { GameStringResponseDto } from './Dto/editor/gameStringResponseDto';
114
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vankosoft/game-platform",
3
- "version": "1.6.3",
3
+ "version": "1.7.0",
4
4
  "description": "Game Platform",
5
5
  "repository": {
6
6
  "type": "git",