Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyhhssyy committed Jun 22, 2024
1 parent d524a0b commit 82c0e5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AmiyaBotPlayerRatingServer/RealtimeHubs/GameHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,11 @@ await Clients.Caller.SendAsync("Alert", JsonConvert.SerializeObject(new

//重新创建一个游戏,然后给所有人发送重新开始的消息
await this.CreateGame(game.GameType, JsonConvert.SerializeObject(game.RoomSettings));

await Clients.Group(gameId).SendAsync("Rematch", JsonConvert.SerializeObject(new
{
GameId = gameId,
}));
}
}
}

0 comments on commit 82c0e5f

Please sign in to comment.