コード例 #1
0
ファイル: CellIdConverter.cs プロジェクト: Mixi59/Stump
 public static Point GetPlanLocation(this MapCell cell, MapControl mapControl)
 {
     return(GetPlanLocation(cell, mapControl.MapHeight, mapControl.MapWidth));
 }
コード例 #2
0
ファイル: CellIdConverter.cs プロジェクト: Mixi59/Stump
        public static Point GetPlanLocation(this MapCell cell, int mapHeight, int mapWidth)
        {
            var grid = GetReferenceGrid(mapHeight, mapWidth);

            return(grid[cell.Id]);
        }