jp.ms.common.engine 1.0.17 → 1.0.18

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.
@@ -1,9 +1,9 @@
1
- import { BaseGameStateType, GameMaster, GamePlayer, GameRoom } from '../base';
1
+ import { GamePlayer, GameRoom } from '../base';
2
2
  export declare abstract class SimpleRoom extends GameRoom {
3
- handleWatchTheTable(player: GamePlayer, tableId: string): GameMaster;
4
- handleEnterTheTable<T extends BaseGameStateType>(player: GamePlayer, tableId: string): T;
5
- handleExitTheTable<T extends BaseGameStateType>(player: GamePlayer, tableId: string): T;
6
- handleMoveOnTheTable<T extends BaseGameStateType>(player: GamePlayer, tableId: string): T;
3
+ handleWatchTheTable<T>(player: GamePlayer, tableId: string): T;
4
+ handleEnterTheTable<T>(player: GamePlayer, tableId: string): T;
5
+ handleExitTheTable<T>(player: GamePlayer, tableId: string): T;
6
+ handleMoveOnTheTable<T>(player: GamePlayer, tableId: string): T;
7
7
  handleFinishRound(): void;
8
8
  handleRestartRound(): void;
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"simple-room.d.ts","sourceRoot":"","sources":["../../src/base-rooms/simple-room.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9E,8BAAsB,UAAW,SAAQ,QAAQ;IAC7C,mBAAmB,CAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,UAAU;IAIrE,mBAAmB,CAAC,CAAC,SAAS,iBAAiB,EAAG,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;IAIzF,kBAAkB,CAAC,CAAC,SAAS,iBAAiB,EAAG,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;IAIxF,oBAAoB,CAAC,CAAC,SAAS,iBAAiB,EAAG,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;IAI1F,iBAAiB;IAIjB,kBAAkB;CAErB"}
1
+ {"version":3,"file":"simple-room.d.ts","sourceRoot":"","sources":["../../src/base-rooms/simple-room.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE9E,8BAAsB,UAAW,SAAQ,QAAQ;IAC7C,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;IAI9D,mBAAmB,CAAC,CAAC,EAAG,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;IAI/D,kBAAkB,CAAC,CAAC,EAAG,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;IAI9D,oBAAoB,CAAC,CAAC,EAAG,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;IAIhE,iBAAiB;IAIjB,kBAAkB;CAErB"}
@@ -1 +1 @@
1
- {"version":3,"file":"simple-room.js","sourceRoot":"","sources":["../../src/base-rooms/simple-room.ts"],"names":[],"mappings":";;;AAAA,kCAA8E;AAE9E,MAAsB,UAAW,SAAQ,eAAQ;IAC7C,mBAAmB,CAAE,MAAkB,EAAE,OAAe;;QACpD,OAAO,MAAA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,0CAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IAED,mBAAmB,CAA+B,MAAkB,EAAE,OAAe;;QACjF,OAAO,MAAA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,0CAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IAED,kBAAkB,CAA+B,MAAkB,EAAE,OAAe;;QAChF,OAAO,MAAA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,0CAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED,oBAAoB,CAA+B,MAAkB,EAAE,OAAe;;QAClF,OAAO,MAAA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,0CAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED,iBAAiB;QACb,sBAAsB;IAC1B,CAAC;IAED,kBAAkB;IAClB,CAAC;CACJ;AAvBD,gCAuBC"}
1
+ {"version":3,"file":"simple-room.js","sourceRoot":"","sources":["../../src/base-rooms/simple-room.ts"],"names":[],"mappings":";;;AAAA,kCAA8E;AAE9E,MAAsB,UAAW,SAAQ,eAAQ;IAC7C,mBAAmB,CAAI,MAAkB,EAAE,OAAe;;QACtD,OAAO,MAAA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,0CAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IAED,mBAAmB,CAAK,MAAkB,EAAE,OAAe;;QACvD,OAAO,MAAA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,0CAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9D,CAAC;IAED,kBAAkB,CAAK,MAAkB,EAAE,OAAe;;QACtD,OAAO,MAAA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,0CAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED,oBAAoB,CAAK,MAAkB,EAAE,OAAe;;QACxD,OAAO,MAAA,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,0CAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED,iBAAiB;QACb,sBAAsB;IAC1B,CAAC;IAED,kBAAkB;IAClB,CAAC;CACJ;AAvBD,gCAuBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jp.ms.common.engine",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,19 +1,19 @@
1
1
  import { BaseGameStateType, GameMaster, GamePlayer, GameRoom } from '../base';
2
2
 
3
3
  export abstract class SimpleRoom extends GameRoom {
4
- handleWatchTheTable (player: GamePlayer, tableId: string): GameMaster {
4
+ handleWatchTheTable<T>(player: GamePlayer, tableId: string): T {
5
5
  return this.getMasterById(tableId)?.watchTheTable(player);
6
6
  }
7
7
 
8
- handleEnterTheTable<T extends BaseGameStateType> (player: GamePlayer, tableId: string): T {
8
+ handleEnterTheTable<T> (player: GamePlayer, tableId: string): T {
9
9
  return this.getMasterById(tableId)?.enterTheTable(player);
10
10
  }
11
11
 
12
- handleExitTheTable<T extends BaseGameStateType> (player: GamePlayer, tableId: string): T {
12
+ handleExitTheTable<T> (player: GamePlayer, tableId: string): T {
13
13
  return this.getMasterById(tableId)?.exitTheTable(player);
14
14
  }
15
15
 
16
- handleMoveOnTheTable<T extends BaseGameStateType> (player: GamePlayer, tableId: string): T {
16
+ handleMoveOnTheTable<T> (player: GamePlayer, tableId: string): T {
17
17
  return this.getMasterById(tableId)?.onHandleMove(player);
18
18
  }
19
19