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 {
|
|
1
|
+
import { GamePlayer, GameRoom } from '../base';
|
|
2
2
|
export declare abstract class SimpleRoom extends GameRoom {
|
|
3
|
-
handleWatchTheTable(player: GamePlayer, tableId: string):
|
|
4
|
-
handleEnterTheTable<T
|
|
5
|
-
handleExitTheTable<T
|
|
6
|
-
handleMoveOnTheTable<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,
|
|
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,
|
|
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,19 +1,19 @@
|
|
|
1
1
|
import { BaseGameStateType, GameMaster, GamePlayer, GameRoom } from '../base';
|
|
2
2
|
|
|
3
3
|
export abstract class SimpleRoom extends GameRoom {
|
|
4
|
-
handleWatchTheTable
|
|
4
|
+
handleWatchTheTable<T>(player: GamePlayer, tableId: string): T {
|
|
5
5
|
return this.getMasterById(tableId)?.watchTheTable(player);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
handleEnterTheTable<T
|
|
8
|
+
handleEnterTheTable<T> (player: GamePlayer, tableId: string): T {
|
|
9
9
|
return this.getMasterById(tableId)?.enterTheTable(player);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
handleExitTheTable<T
|
|
12
|
+
handleExitTheTable<T> (player: GamePlayer, tableId: string): T {
|
|
13
13
|
return this.getMasterById(tableId)?.exitTheTable(player);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
handleMoveOnTheTable<T
|
|
16
|
+
handleMoveOnTheTable<T> (player: GamePlayer, tableId: string): T {
|
|
17
17
|
return this.getMasterById(tableId)?.onHandleMove(player);
|
|
18
18
|
}
|
|
19
19
|
|