public Task WriteGameLog(GameLogMqCommand command)
 {
     return(_repository.InsertLog(new GameLogInfo(command.GameLog.GameId,
                                                  command.GameLog.Blind, command.GameLog.RoomId,
                                                  command.GameLog.RoomType, command.GameLog.GameTime,
                                                  command.GameLog.GameActions)));
 }
Beispiel #2
0
 public async Task AddActFromGamelog(GameLogMqCommand gamelog)
 {
     //玩家
     var allPlayers = gamelog.GetPlayers();
     await _bus.SendCommand(new AddActFromGamelogCommand(allPlayers, gamelog.GameLog.RoomType));
 }