This commit is contained in:
syuilo
2024-02-04 17:11:42 +09:00
parent be3b2558d1
commit 38e3d248fb
10 changed files with 49 additions and 89 deletions

View File

@@ -94,7 +94,7 @@ class MahjongRoomChannel extends Channel {
}
@bindThis
private async dahai(tile: string, riichi = false) {
private async dahai(tile: number, riichi = false) {
if (this.user == null) return;
this.mahjongService.commit_dahai(this.roomId!, this.user, tile, riichi);
@@ -136,14 +136,14 @@ class MahjongRoomChannel extends Channel {
}
@bindThis
private async ankan(tile: string) {
private async ankan(tile: number) {
if (this.user == null) return;
this.mahjongService.commit_ankan(this.roomId!, this.user, tile);
}
@bindThis
private async kakan(tile: string) {
private async kakan(tile: number) {
if (this.user == null) return;
this.mahjongService.commit_kakan(this.roomId!, this.user, tile);