public void Tsumo(int currentPlayerIndex, Tile winningTile, PointInfo pointInfo) { var tsumoState = new PlayerTsumoState { CurrentRoundStatus = CurrentRoundStatus, TsumoPlayerIndex = currentPlayerIndex, WinningTile = winningTile, MahjongSet = mahjongSet, TsumoPointInfo = pointInfo }; StateMachine.ChangeState(tsumoState); }
public void RpcTsumo(EventMessages.TsumoInfo info) { var tsumoState = new PlayerTsumoState { CurrentRoundStatus = CurrentRoundStatus, TsumoPlayerIndex = info.TsumoPlayerIndex, TsumoPlayerName = info.TsumoPlayerName, TsumoHandData = info.TsumoHandData, WinningTile = info.WinningTile, DoraIndicators = info.DoraIndicators, UraDoraIndicators = info.UraDoraIndicators, IsRichi = info.IsRichi, TsumoPointInfo = info.TsumoPointInfo, TotalPoints = info.TotalPoints }; StateMachine.ChangeState(tsumoState); }