wip
This commit is contained in:
parent
3c97164cf2
commit
859cf75ad3
7 changed files with 74 additions and 55 deletions
|
|
@ -234,7 +234,7 @@ export interface MahjongRoomEventTypes {
|
|||
};
|
||||
ronned: {
|
||||
};
|
||||
hora: {
|
||||
tsumoHora: {
|
||||
};
|
||||
}
|
||||
//#endregion
|
||||
|
|
|
|||
|
|
@ -528,7 +528,7 @@ export class MahjongService implements OnApplicationShutdown, OnModuleInit {
|
|||
}
|
||||
|
||||
@bindThis
|
||||
public async commit_hora(roomId: MiMahjongGame['id'], user: MiUser) {
|
||||
public async commit_tsumoHora(roomId: MiMahjongGame['id'], user: MiUser) {
|
||||
const room = await this.getRoom(roomId);
|
||||
if (room == null) return;
|
||||
if (room.gameState == null) return;
|
||||
|
|
@ -538,13 +538,13 @@ export class MahjongService implements OnApplicationShutdown, OnModuleInit {
|
|||
|
||||
await this.clearTurnWaitingTimer(room.id);
|
||||
|
||||
const res = engine.commit_hora(myHouse);
|
||||
const res = engine.commit_tsumoHora(myHouse);
|
||||
|
||||
this.globalEventService.publishMahjongRoomStream(room.id, 'horad', { });
|
||||
this.globalEventService.publishMahjongRoomStream(room.id, 'tsumoHora', { });
|
||||
}
|
||||
|
||||
@bindThis
|
||||
public async commit_ron(roomId: MiMahjongGame['id'], user: MiUser) {
|
||||
public async commit_ronHora(roomId: MiMahjongGame['id'], user: MiUser) {
|
||||
const room = await this.getRoom(roomId);
|
||||
if (room == null) return;
|
||||
if (room.gameState == null) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue