/// <summary> /// 직선 검사를 해서 결과를 반환합니다. (없을경우 Null) /// </summary> /// <param name="block">기준 블록</param> /// <param name="matchDir">체크 방향</param> /// <returns>매치결과 </returns> private MatchInfo CheckStraight(Block block, MatchDirection matchDir) { var originType = block.type; var firstBlock = GetFirstBlock(block, matchDir); Direction dir = MatchUtil.LookAtEnd(matchDir); var result = CheckDir(firstBlock, dir); if (result.Count == 0) { return(null); } var matchInfo = new MatchInfo(originType, MatchType.Straight, matchDir, result); return(matchInfo); }